Disable Docs from group’s Manage screen
-
Regarding this post.
It removes the Docs step from the group creation process. Is there an action to also remove Docs from the group’s Manage screen? For instance:
function buddydev_remove_group_admin_settings() {
if ( ! bp_is_group() ) {
return;
}
bp_core_remove_subnav_item( groups_get_current_group()->slug . '_manage', 'group-settings', 'groups' );
// reattach screen function to avoid 404.
add_action( 'bp_screens', 'groups_screen_group_admin', 3 );
}
add_action( 'bp_template_redirect', 'buddydev_remove_group_admin_settings', 1 );removes group settings from the group’s Manage options.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.