bp_live_spammer_login_error()
Show a custom error message when a logged-in user is marked as a spammer.
Description
Source
File: bp-members/bp-members-functions.php
function bp_live_spammer_login_error() {
global $error;
$error = __( '<strong>ERROR</strong>: Your account has been marked as a spammer.', 'buddyboss' );
// Shake shake shake!
add_action( 'login_head', 'wp_shake_js', 12 );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.8.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.