Block user with a script

[ad_1]

That is the correct way. At the same time, the recommended, in terms of compatibility with features releases of WP Cerber, way is:


include_once( 'set here your plugins directory path' . '/wp-cerber/cerber-load.php' );

if ( function_exists( 'cerber_load_admin_code' ) ) {
	cerber_load_admin_code();
	cerber_block_user( $user_id, $msg, $note );
}

/*

Parameters are:

$user_id = User ID
$msg = An optional message to be displayed on the login page when the user tries to log in
$note = An optional note visible to website admins

*/

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer