I have fetch some issue when many records exist in post meta, so below query i found into Query Monitor WordPress plugin that was taking too much time to execute
SELECT DISTINCT meta_key FROM wp_postmeta WHERE meta_key NOT BETWEEN ‘‘ AND ‘_z’ HAVING meta_key NOT LIKE ‘\%’ ORDER BY meta_key LIMIT 30
That query is locatated at ../wp-admin/includes/template.php Line no 682
So what I did as I do not need meta form with selection option I have added below filter on my function.php and going to rocket my client website:
add_filter(‘postmeta_form_keys’, function(){
return false;
});
Try to do you as well and let me know if you having same issue and solve by above filter. thanks
shobhit says
do we need to add this in WordPress functions file or themes ?
Parbat Pithiya says
yes you can