Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2021 04:03:08 PM (5 months ago)
Author:
dcavins
Message:

BP_Optouts: Add WP Admin management screen.

Add a management screen for opt-out requests at the
single-site or network level. This screen is appended
to the BuddyPress Tools screen. Using this screen,
site admins can view opt-out requests, search for
opt-outs by specific email address, and monitor
opt-out requests for signs of abuse by a particular
email type or potentially malicious user.

Fixes #8448.

File:
1 edited

Legend:

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

    r12897 r12899  
    8484    if ( in_array( $plugin_page, array( 'bp-tools', 'available-tools' ) ) ) {
    8585        $submenu_file = $plugin_page;
     86    }
     87
     88    // Keep the BuddyPress tools menu highlighted.
     89    if ( 'bp-optouts' === $plugin_page ) {
     90        $submenu_file = 'bp-tools';
    8691    }
    8792}
     
    474479                'name' => __( 'Repair', 'buddypress' ),
    475480            ),
     481            '1' => array(
     482                'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-optouts' ), $tools_page ) ),
     483                'name' => __( 'Manage Opt-outs', 'buddypress' ),
     484            ),
    476485        );
    477486    }
Note: See TracChangeset for help on using the changeset viewer.