Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2021 11:52:15 PM (3 years ago)
Author:
dcavins
Message:

Member Invites: Add WP Admin management screen.

Add WP Admin Screen to manage member invites
as tab on the BuddyPress > Tools screen.

See #8139.

File:
1 edited

Legend:

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

    r12899 r12927  
    8686    }
    8787
    88     // Keep the BuddyPress tools menu highlighted.
    89     if ( 'bp-optouts' === $plugin_page ) {
     88    // Keep the BuddyPress tools menu highlighted when using a tools tab.
     89    if ( 'bp-optouts' === $plugin_page || 'bp-members-invitations' === $plugin_page ) {
    9090        $submenu_file = 'bp-tools';
    9191    }
     
    285285    // Activate and Register are special cases. They are not components but they need WP pages.
    286286    // If user registration is disabled, we can skip this step.
    287     if ( bp_get_signup_allowed() ) {
     287    if ( bp_get_signup_allowed() || bp_get_members_invitations_allowed() ) {
    288288        $wp_page_components[] = array(
    289289            'id'   => 'activate',
     
    480480            ),
    481481            '1' => array(
     482                'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-members-invitations' ), $tools_page ) ),
     483                'name' => __( 'Manage Invitations', 'buddypress' ),
     484            ),
     485            '2' => array(
    482486                'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-optouts' ), $tools_page ) ),
    483487                'name' => __( 'Manage Opt-outs', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.