mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-07-27 02:55:34 +08:00
15 lines
285 B
PHP
15 lines
285 B
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Disable login
|
|
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
|
|
*/
|
|
|
|
add_filter(
|
|
'wp_authenticate_user',
|
|
static function () {
|
|
return new WP_Error('authentication_failed', __( 'Login disabled.'));
|
|
},
|
|
0,
|
|
0
|
|
);
|