nonce_user_logged_out хук-фильтрWP 3.5.0

Filters whether the user who generated the nonce is logged out.

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

add_filter( 'nonce_user_logged_out', 'wp_kama_nonce_user_logged_out_filter', 10, 2 );

/**
 * Function for `nonce_user_logged_out` filter-hook.
 * 
 * @param int        $uid    ID of the nonce-owning user.
 * @param string|int $action The nonce action, or -1 if none was provided.
 *
 * @return int
 */
function wp_kama_nonce_user_logged_out_filter( $uid, $action ){

	// filter...
	return $uid;
}
$uid(int)
ID of the nonce-owning user.
$action(строка|int)
The nonce action, or -1 if none was provided.

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

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

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

wp_verify_nonce()
nonce_user_logged_out
wp_create_nonce()
nonce_user_logged_out
wp-includes/pluggable.php 2326
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
wp-includes/pluggable.php 2381
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );

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

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