wp_auth_check_same_domain
Filters whether the authentication check originated at the same domain.
Использование
add_filter( 'wp_auth_check_same_domain', 'wp_kama_auth_check_same_domain_filter' ); /** * Function for `wp_auth_check_same_domain` filter-hook. * * @param bool $same_domain Whether the authentication check originated at the same domain. * * @return bool */ function wp_kama_auth_check_same_domain_filter( $same_domain ){ // filter... return $same_domain; }
- $same_domain(true|false)
- Whether the authentication check originated at the same domain.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
wp_auth_check_same_domain
wp-includes/functions.php 7386
$same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain );