• George

    (@quantum_leap)


    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)
  • Plugin Author David Cavins

    (@dcavins)

    Sure, you can change the navigation using BP navigation API: https://codex.buddypress.org/developer/navigation-api/

    Are you wanting to have Docs enabled for groups but not allow the group admins to manage the settings? I’m trying to understand your use case. Thanks!

    Thread Starter George

    (@quantum_leap)

    Are you wanting to have Docs enabled for groups but not allow the group admins to manage the settings?

    Yes, I don’t want to have that option visible in the Manage options and I don’t want to just hide it with CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.