5, 'headers' => array( 'Content-Type' => 'application/json', 'Authorization' => 'Bearer ' . $ael42a_token, ), 'body' => '{}', ) ); } // Clear the cron events. wp_clear_scheduled_hook( 'ael42a_daily' ); wp_clear_scheduled_hook( 'ael42a_detect_existing' ); // Delete all ael42a_* options. $ael42a_options = array( 'ael42a_site_token', 'ael42a_site', 'ael42a_verify_token', 'ael42a_stats', 'ael42a_telemetry_opt_in', 'ael42a_telemetry_last_sent', 'ael42a_full_limit', 'ael42a_api_base', 'ael42a_app_url', 'ael42a_external_content', ); foreach ( $ael42a_options as $ael42a_option ) { delete_option( $ael42a_option ); } // Delete all ael42a_* transients (including per-post markdown cache). global $wpdb; $wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_ael42a_' ) . '%', $wpdb->esc_like( '_transient_timeout_ael42a_' ) . '%' ) );