5, 'headers' => array( 'Authorization' => 'Bearer ' . $cronengine_key, 'Content-Type' => 'application/json', 'Accept' => 'application/json', ), 'body' => '{}', ) ); } delete_option( 'cronengine_key' ); delete_option( 'cronengine_state' ); delete_transient( 'cronengine_status' ); delete_metadata( 'user', 0, 'cronengine_notice_dismissed', '', true ); // Per-admin transients from an unfinished connect or a pending message. global $wpdb; // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- one-off cleanup of this plugin's own transients. $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_cronengine_' ) . '%', $wpdb->esc_like( '_transient_timeout_cronengine_' ) . '%', $wpdb->esc_like( '_site_transient_cronengine_' ) . '%', $wpdb->esc_like( '_site_transient_timeout_cronengine_' ) . '%' ) );