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.7.2

apply_filters('nonce_user_logged_out') is found 2 times:

  • /wp-includes/pluggable.php line 2367
    2363
    2364
    2365
    2366
    2367
    2368
    2369
    2370
    2371
    2372
         *
         * @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 2422
    2418
    2419
    2420
    2421
    2422
    2423
    2424
    2425
    2426
    2427
    2428
    $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: