Remove Meta Boxes

  • wrcub


    Hi! This is a fantastic theme!

    I’m hoping for some help. I’ve been trying to disable the “graphene-post-specific-options” and the “content-permissions” meta boxes from all posts, pages, and custom post types. They are tenacious, shrugging off everything I’ve thrown at them. I can’t find an option to disable them, other then unchecking them in the screen options, but I want it to be site-wide. Any suggestions?

    just fyi, I’ve been trying stuff like:

    add_action( 'add_meta_boxes', 'my_remove_post_meta_boxes' );

    function my_remove_post_meta_boxes() {

    remove_meta_box( 'graphene_custom_meta', 'post', 'normal' );
    remove_meta_box( 'content-permissions-meta-box', 'post', 'advanced' );


    Thanks in advance!!


    Kenneth John Odle


    Screen options are set on a user basis. So once you turn them off for pages and posts, you shouldn’t see them again.



    Is there a way to disable them so that no user sees them? They look really handy but we won’t be using them, and for the sake of clutter I’d like to remove them, so that users themselves don’t have to turn them off.


    function remove_graphene_custom_meta() {
    remove_action( 'add_meta_boxes', 'graphene_add_meta_box' );
    add_action( 'init', 'remove_graphene_custom_meta' );

    (Untested, YMMV)



    Perfect! That was the trick! The mileage was spot on.

    I’ll mark this as resolved. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.