BP_Members_Admin::signups_admin()
Signups admin page router.
Description 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 Source
File: bp-members/classes/class-bp-members-admin.php
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 | 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 Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |