WebDevStudios / BuddyPress-Registration-Options

Moderate new BuddyPress members, fight BuddyPress spam, set BuddyPress Groups or Blogs/Sites new members can join on the registration page.
28 stars 16 forks source link

Add link to pending Signup Page for each user. #217

Open tw2113 opened 2 years ago

tw2113 commented 2 years ago

Meant to go alongside the frontend profile link we already provide, only this goes to the associated listing shown at /wp-admin/users.php?page=bp-signups and the specific signup for the person.

Similar to this:

$user = get_user_by( 'ID', $user_id );
$signup = BP_Signup::get( [ 'user_email' => $user->user_email ] );
$activate_link = add_query_arg(
    array(
        'page'      => 'bp-signups',
        'signup_id' => $signup['signups'][0]->id,
        'action'    => 'activate',
    ),
    bp_get_admin_url( 'users.php' )
);
printf(
    '<p><a href="%s">Signup Profile</a></p>',
    $activate_link
) ;
tw2113 commented 2 years ago

Original request: https://wordpress.org/support/topic/member-request-profile-details/