nonce_user_logged_out
Filters whether the user who generated the nonce is logged out.
Usage
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(string|int)
- The nonce action, or -1 if none was provided.
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
nonce_user_logged_out
nonce_user_logged_out
wp-includes/pluggable.php 2367
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
wp-includes/pluggable.php 2422
$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );