I’m trying to reduce my database queries. I don’t have any sidebars or widgets set but I noticed the following query
SELECT option_value FROM wp_options WHERE option_name = 'widget_pages' LIMIT 1
Similar queries happen for widget_calendar, widget_links, widget_tag_cloud, and widget_nav_menu.
5 database queries for no reason. How do I disable this?
remove_action(‘widgets_init’) doesn’t do anything.
Does unregistering them the also disable the database queries?
Goes in functions.php:
I have the following code in a theme, it stops any related db queries from running.