secure_auth_cookie хук-фильтр . WP 3.1.0
Filters whether the auth cookie should only be sent over HTTPS.
Использование
add_filter( 'secure_auth_cookie', 'filter_function_name_2119', 10, 2 ); function filter_function_name_2119( $secure, $user_id ){ // filter... return $secure; }
- $secure(true/false)
- Whether the cookie should only be sent over HTTPS.
- $user_id(число)
- User ID.
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
secure_auth_cookie
wp-includes/pluggable.php 917
$secure = apply_filters( 'secure_auth_cookie', $secure, $user_id );