Home › Forums › Backend Issues (wp-admin) › remove_meta_box not working for 'normal' › Reply To: remove_meta_box not working for 'normal'
So I found a solution that made it work for me. I noticed that all metaboxes are added in ‘high’ priority, except those positioned on the side. Luckily there is filter in ACF to change this. So I changed the priority to ‘core’ and the remove_meta_box started working.
add_filter('acf/input/meta_box_priority', 'custom_meta_box_priority', 10, 2);
function custom_meta_box_priority($priority, $field_group) {
$priority = 'core';
return $priority;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.