- This topic has 2 replies, 2 voices, and was last updated 5 months, 3 weeks ago by .
-
Topic
-
Hi guys,
Quick question – using Query Monitor I can see that there are a large number of queries being run in the frontend of the site due to the registration of meta boxes (some of which do lookups on the database). Is there any downside to making the registration of them conditional on being in the admin area? Something like this…
add_filter( 'rwmb_meta_boxes', 'indigo_register_metaboxes',999 ); function indigo_register_metaboxes( $meta_boxes ) { if (is_admin()) { $meta_boxes[] = array(....); } }
Cheers,
Will
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.