Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2024 08:04:12 PM (3 months ago)
Author:
imath
Message:

Add an help tab to the Group Types Admin screen

This help tab includes a link to the Group Types documentation page.

Fixes #9183
Closes https://github.com/buddypress/buddypress/pull/314

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r13927 r13928  
    804804            break;
    805805
     806        case 'edit-bp_group_type':
     807            // Help tab.
     808            $screen->add_help_tab(
     809                array(
     810                    'id'      => 'bp-group-types-overview',
     811                    'title'   => __( 'Overview', 'buddypress' ),
     812                    'content' => bp_core_add_contextual_help_content( 'bp-group-types-overview' ),
     813                )
     814            );
     815
     816            $documentation_link = sprintf(
     817                '<a href="%1$s">%2$s</a>',
     818                esc_url( 'https://github.com/buddypress/buddypress/blob/master/docs/user/administration/groups/group-types.md' ),
     819                esc_html__( 'Managing Group Types', 'buddypress' )
     820            );
     821            break;
     822
    806823        case 'edit-bp-email':
    807824            // Help tab.
     
    876893add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' );
    877894add_action( 'bp_admin_load_bp_member_type', 'bp_core_add_contextual_help' );
     895add_action( 'bp_admin_load_bp_group_type', 'bp_core_add_contextual_help' );
    878896add_action( 'admin_head-tools_page_bp-tools', 'bp_core_add_contextual_help' );
    879897
     
    911929        case 'bp-member-types-overview':
    912930            $retval = __( 'Member Types in BuddyPress provide a powerful way to classify users within your community. By defining various member types, such as "Students", "Teachers", or "Alumni", you can create a more organized and tailored community environment. This feature is especially useful for communities with diverse user groups, allowing customized interactions, content access, and privileges.', 'buddypress' );
     931            break;
     932
     933        case 'bp-group-types-overview':
     934            $retval = __( 'The Group Types feature categorizes community groups into distinct categories, enhancing the management and personalization of group experiences within the community.', 'buddypress' );
    913935            break;
    914936
Note: See TracChangeset for help on using the changeset viewer.