mirror of
https://gh.wpcy.net/https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-04-25 04:52:19 +08:00
33 lines
549 B
PHP
33 lines
549 B
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Disable admin email confirmation
|
|
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
|
|
*/
|
|
|
|
add_filter(
|
|
'admin_email_check_interval',
|
|
'__return_zero',
|
|
PHP_INT_MAX,
|
|
0
|
|
);
|
|
|
|
// Hard-code maintainer email address.
|
|
/*
|
|
add_filter(
|
|
'pre_option_admin_email',
|
|
static function () {
|
|
return 'admin@szepe.net';
|
|
},
|
|
PHP_INT_MAX,
|
|
0
|
|
);
|
|
add_filter(
|
|
'pre_option_new_admin_email',
|
|
static function () {
|
|
return 'admin@szepe.net';
|
|
},
|
|
PHP_INT_MAX,
|
|
0
|
|
);
|
|
*/
|