I need to disable Access Group and Content Template metaboxes from page edit screens because they confuse my users. How could I do that?
Thanks,
Kris
Shane
Supporter
Languages:
Englisch (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Kris,
Thanks for contacting our support.
I'm not sure if this is possible. However what I can do is to check with our development team to see if this is possible.
Thanks
I have removed other metaboxes with code such as this:
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
I would imagine I could do the same for Access Group and Content Template metaboxes provided I knew their respective IDs.
Shane
Supporter
Languages:
Englisch (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Kris,
The access group metabox ID is "access_group" and for the content template it is "views_template".
Please let me know if this was helpful.
Thanks
Thanks!
This is what I ended up doing:
function remove_excessive_metaboxes() {
global $WPV_templates;
remove_action('admin_head', array(Access_Helper,'wpcf_access_select_group_metabox'));
remove_action('admin_head', array($WPV_templates,'post_edit_template_options'));
}
add_action('init', 'remove_excessive_metaboxes');