BP_Members_Admin::signups_display_errors()
Display any activation errors.
Description
Source
File: bp-members/classes/class-bp-members-admin.php
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 | public function signups_display_errors() { // Look for sign-up errors. $errors = get_transient( '_bp_admin_signups_errors' ); // Bail if no activation errors. if ( empty ( $errors ) ) { return ; } // Loop through errors and display them. foreach ( $errors as $error ) : ?> <li><?php echo esc_html( $error [0] );?>: <?php echo esc_html( $error [1] );?></li> <?php endforeach ; // Delete the redirect transient. delete_transient( '_bp_admin_signups_errors' ); } |
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.