0

I created my own custom post, all right up here. I have also added the meta box for custom post. But I've noticed that some plugins automatically add their own METABOX my custom post type.

This can be avoided?

Kind Regars.

1
  • You first need to know all parameters with plugin resister meta boxes to use remove_meta_box()
    – Sumit
    Commented Jun 4, 2016 at 8:50

1 Answer 1

0

WordPress has remove_meta_box() function. You can use it to remove meta box

like

function remove_post_meta_box() {
    remove_meta_box( 'meta_box_id' , 'post' , 'normal' ); 
}
add_action( 'admin_menu' , 'remove_post_meta_box' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.