• Hello.
    I want to turn off “post options”, when Author user is adding a new post.
    To prevent from changing Sidebars. Hueman theme.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello! I’d like to do this as well for Authors and Contributors. How could this be accomplished? Thanks!

    Hi nownet and iueweb. You can do this with a custom function. You should be using a child theme; let me know if you need any information on setting up a child theme. If your child theme doesn’t have a functions.php file then you need to create one. Then add this to it:

    /* Remove Post Options metabox generated by the theme */
    function my_remove_post_metaboxes(){
        if ( ! current_user_can( 'delete_others_pages' ) ) {       // Only run if the user is an Author or lower.
            remove_meta_box( 'post-options', 'post', 'normal' );   // Remove Post Options metabox
        }
    }
    add_action( 'do_meta_boxes', 'my_remove_post_metaboxes' );

    Let me know if you have any questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to turn off "post options" for Author user’ is closed to new replies.