Useful Code Snippets for WordPress 6.1

Originally published at: Useful Code Snippets for WordPress 6.1 - MainWP WordPress Management

WordPress 6.1 is scheduled to be released on the 1st of November and contains many feature improvements. Database queries made using WP_Query will now be cached by default in WordPress 6.1. To disable caching globally on query improvements (extreme case), use this code snippet; function disable_caching( $wp_query ) { $wp_query->query_vars[‘cache_results’] = false; } add_action( ‘parse_query’,…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.