Skip Navigation

[Gelöst] Remove Access Group and Content Template metaboxes from page edit screens?

This support ticket is created vor 7 Jahre, 9 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by Kris Haamer vor 7 Jahre, 9 Monate.

Assigned support staff: Shane.

Author
Artikel
#296484

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

#296879

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

#296913

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.

#297168

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

#298268

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');