send_auth_cookies
Allows preventing auth cookies from actually being sent to the client.
Использование
add_filter( 'send_auth_cookies', 'wp_kama_send_auth_cookies_filter' ); /** * Function for `send_auth_cookies` filter-hook. * * @param bool $send Whether to send auth cookies to the client. * * @return bool */ function wp_kama_send_auth_cookies_filter( $send ){ // filter... return $send; }
- $send(true|false)
- Whether to send auth cookies to the client.
Список изменений
С версии 4.7.4 | Введена. |
Где вызывается хук
send_auth_cookies
send_auth_cookies
wp-includes/pluggable.php 1074
if ( ! apply_filters( 'send_auth_cookies', true ) ) {
wp-includes/pluggable.php 1102
if ( ! apply_filters( 'send_auth_cookies', true ) ) {