admin_email_check_interval
Filters the interval for redirecting the user to the admin email confirmation screen.
If 0 (zero) is returned, the user will not be redirected.
Использование
add_filter( 'admin_email_check_interval', 'wp_kama_admin_email_check_interval_filter' ); /** * Function for `admin_email_check_interval` filter-hook. * * @param int $interval Interval time (in seconds). * * @return int */ function wp_kama_admin_email_check_interval_filter( $interval ){ // filter... return $interval; }
- $interval(int)
- Interval time (in seconds).
По умолчанию: 6 months
Список изменений
С версии 5.3.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
admin_email_check_interval
wp-login.php 645
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );
wp-login.php 1391
$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );