auth_cookie_bad_session_token хук-событиеWP 4.0.0

Fires if a bad session token is encountered.

Использование

add_action( 'auth_cookie_bad_session_token', 'wp_kama_auth_cookie_bad_session_token_action' );

/**
 * Function for `auth_cookie_bad_session_token` action-hook.
 * 
 * @param string[] $cookie_elements Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value.
 *
 * @return void
 */
function wp_kama_auth_cookie_bad_session_token_action( $cookie_elements ){

	// action...
}
$cookie_elements(string[])

Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value.

  • username(строка)
    User's username.

  • expiration(строка)
    The time the cookie expires as a UNIX timestamp.

  • token(строка)
    User's session token used.

  • hmac(строка)
    The security hash for the cookie.

  • scheme(строка)
    The cookie scheme to use.

Список изменений

С версии 4.0.0 Введена.

Где вызывается хук

wp_validate_auth_cookie()
auth_cookie_bad_session_token
wp-includes/pluggable.php 806
do_action( 'auth_cookie_bad_session_token', $cookie_elements );

Где используется хук в WordPress

Использование не найдено.