Deprecated: is_ajax is deprecated since version 6.1.0!
-
I’m always running the latest WordPress and WooCommerce nightlies on my development environment so here’s something you should look into before the release of WooCommerce version 6.1.0, which is scheduled for January 11, 2022.
The plugin is throwing this notice:
Deprecated: is_ajax is <strong>deprecated</strong> since version 6.1.0! Use wp_doing_ajax instead. in /Users/marcoalmeida/Documents/Websites/_local/wordpress-testing/app/public/wp-includes/functions.php on line 5316
This happens because you’re calling
is_ajax()
all over the plugin and since WordPress 4.7.0 can usewp_doing_ajax()
.References:
– https://developer.woocommerce.com/2021/12/21/woocommerce-6-1-0-beta-1/ (check Deprecations)
– https://stackoverflow.com/questions/14348470/is-ajax-in-wordpress
– https://developer.www.ads-software.com/reference/functions/wp_doing_ajax/
- The topic ‘Deprecated: is_ajax is deprecated since version 6.1.0!’ is closed to new replies.