nonce_user_logged_out

nonce_user_logged_out

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('nonce_user_logged_out') is found 2 times:

  • /wp-includes/pluggable.php line 2326
    			 *
    			 * @param int        $uid    ID of the nonce-owning user.
    			 * @param string|int $action The nonce action, or -1 if none was provided.
    			 */
    			$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
    		}
    
    		if ( empty( $nonce ) ) {
    			return false;
    		}
    
    
  • /wp-includes/pluggable.php line 2381
    		$user = wp_get_current_user();
    		$uid  = (int) $user->ID;
    		if ( ! $uid ) {
    			/** This filter is documented in wp-includes/pluggable.php */
    			$uid = apply_filters( 'nonce_user_logged_out', $uid, $action );
    		}
    
    		$token = wp_get_session_token();
    		$i     = wp_nonce_tick( $action );
    
    		return substr( wp_hash( $i . '|' . $action . '|' . $uid . '|' . $token, 'nonce' ), -12, 10 );
    

See this hook used in plugins: