BP_Members_Admin::signups_admin()
Signups admin page router.
Description
Depending on the context, display
- the list of signups,
- or the delete confirmation screen,
- or the activate confirmation screen,
- or the "resend" email confirmation screen.
Also prepare the admin notices.
Source
File: bp-members/classes/class-bp-members-admin.php
public function signups_admin() {
$doaction = bp_admin_list_table_current_bulk_action();
// Prepare notices for admin.
$notice = $this->get_signup_notice();
// Display notices.
if ( ! empty( $notice ) ) :
if ( 'updated' === $notice['class'] ) : ?>
<div id="message" class="<?php echo esc_attr( $notice['class'] ); ?>">
<?php else: ?>
<div class="<?php echo esc_attr( $notice['class'] ); ?>">
<?php endif; ?>
<p><?php echo $notice['message']; ?></p>
<?php if ( ! empty( $_REQUEST['notactivated'] ) || ! empty( $_REQUEST['notdeleted'] ) || ! empty( $_REQUEST['notsent'] ) ) :?>
<ul><?php $this->signups_display_errors();?></ul>
<?php endif ;?>
</div>
<?php endif;
// Show the proper screen.
switch ( $doaction ) {
case 'activate' :
case 'delete' :
case 'resend' :
$this->signups_admin_manage( $doaction );
break;
default:
$this->signups_admin_index();
break;
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.