WordPress.org

Ready to get started?Download WordPress

Forums

AVH Extended Categories Widgets
Way to Remove Category Groups Metabox by Role? (3 posts)

  1. WebEndev
    Member
    Posted 2 years ago #

    Is there a way to not display the Category Groups Metabox in the post edit screen, for a certain user role (or limit it to admin only)?

    Thanks!

    http://wordpress.org/extend/plugins/extended-categories-widget/

  2. petervanderdoes
    Member
    Plugin Author

    Posted 2 years ago #

    No, sorry.

  3. WebEndev
    Member
    Posted 2 years ago #

    Hi.

    I actually found a way:

    add_action( 'admin_menu', 'we_remove_avhcatgrp_metabox' );
    if( !current_user_can('administrator') ) {
    	function we_remove_avhcatgrp_metabox() {
    	remove_meta_box('avhec_catgroupdiv', 'post', 'normal');
    	}
    }

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic