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-tools.php

    r12897 r12899  
    556556                    esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ),
    557557                    '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Repair Tools', 'buddypress' ) . '</a>'
     558                );
     559                ?>
     560            </dd>
     561            <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ) ?></dt>
     562            <dd>
     563                <?php esc_html_e( 'BuddyPress stores opt-out requests from people who are not members of this site, but have been contacted via communication from this site, and wish to opt-out from future communication.', 'buddypress' ); ?>
     564                <?php
     565                $url = add_query_arg( 'page', 'bp-optouts', bp_get_admin_url( $page ) );
     566                printf(
     567                    /* translators: %s: the link to the BuddyPress Nonmember Opt-outs */
     568                    esc_html_x( 'Visit %s to manage your site&rsquo;s opt-out requests.', 'buddypress opt-outs intro', 'buddypress' ),
     569                    '<a href="' . esc_url( $url ) . '">' . esc_html__( 'Nonmember Opt-outs', 'buddypress' ) . '</a>'
    558570                );
    559571                ?>
Note: See TracChangeset for help on using the changeset viewer.