bp_live_spammer_login_error()

Show a custom error message when a logged-in user is marked as a spammer.


Source 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.', 'buddypress' );

	// Shake shake shake!
	add_action( 'login_head', 'wp_shake_js', 12 );
}

Changelog Changelog

Changelog
Version Description
1.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.