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
2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 | 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.