public function loginErrorAccessManagement($error)
    {
        // Define default message
        $message = is_bool($error) && $error ? Translate::t('configuration.accessmanagement.login.error') : $error;

        // Change login error message
        add_filter('login_errors', function () use ($message) {
            if (!empty($message)) {
                return $message;
            }
        });
    }
public function loginErrorAccessManagement($error)
    {
        // Define default message
        $message = is_bool($error) && $error ? Translate::t('configuration.accessmanagement.login.error') : $error;

        // Change login error message
        add_filter('login_errors', function () use ($message) {
            if (!empty($message)) {
                return $message;
            }
        });
    }
public function loginErrorAccessManagement ( $ error ) { // Define default message $ message = is_bool ( $ error ) && $ error ? Translate :: t ( 'configuration.accessmanagement.login.error' ) : $ error ; // Change login error message add_filter ( 'login_errors' , function ( ) use ( $ message ) { if ( ! empty ( $ message ) ) { return $ message ; } } ) ; }
Redisign wp-login.php page with custom error message.

@param string|boolean $error
Redisign wp - login . php page with custom error message .