WordPress filter hook · part of WordPress core
nonce_user_logged_out
A WordPress core filter that 18 plugins also fire themselves, running on 7.9M+ sites between them.
“This filter is documented in wp-includes/pluggable.php”
How to use nonce_user_logged_out
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'nonce_user_logged_out', function( $uid, $action ) {
// Change $uid here.
return $uid;
}, 10, 2 );Argument names come from LiteSpeed Cache's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
18 plugins that fire nonce_user_logged_out
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
LiteSpeed Cache7+ million installs
apply_filters( 'nonce_user_logged_out', $uid, $action )litespeed-cache.php:183 -
MainWP Child700,000+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )includes/functions.php:48 -
Post Views Counter100,000+ installs
apply_filters( 'nonce_user_logged_out', 0, 'wp_rest' )includes/class-status-delivery.php:484 -
Mailchimp List Subscribe Form60,000+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )mailchimp.php:986 -
Powerkit10,000+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )core/core-powerkit-helpers.php:452 -
MainWP Key Maker3,000+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )mainwp-key-maker.php:225 -
Hash Form Builder3,000+ installs
apply_filters( 'nonce_user_logged_out', 0, $action )includes/HashFormHelper.php:48 -
Rede Itaú for WooCommerce1,000+ installs
apply_filters( 'nonce_user_logged_out', 0, $action )Includes/LknIntegrationRedeForWoocommerceHelper.php:418 -
AppPresser900+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )modules/lms/includes/nonce-fix.php:14 -
BuddyForms800+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )includes/functions.php:1268 -
CIELO API PIX, credit card, debit payment for WooCommerce700+ installs
apply_filters( 'nonce_user_logged_out', 0, $action )includes/LknWcCieloHelper.php:1069 -
Fraud and Scam Detection For WooCommerce200+ installs
apply_filters( 'nonce_user_logged_out', 0, $action )Includes/LknFsdwFraudAndScamDetectionForWoocommerceHelper.php:334 -
vjoon WordPress Adapter10+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )src/Authorization.php:31 -
Noncensible10+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )noncensible.php:68 -
EasyTranslate10+ installs
apply_filters( 'nonce_user_logged_out', $uid, $action )admin/functions.php:229 -
DigitalM Inside SEO10+ installs
apply_filters( 'nonce_user_logged_out', 0, $action )includes/class-seoh-view.php:186 -
Wonderful Geo Page CacheFewer than 10 installs
apply_filters( 'nonce_user_logged_out', 0, $action )wonderful-geo-page-cache.php:759 -
wp_breach_protectFewer than 10 installs
apply_filters( 'nonce_user_logged_out', $uid, $action )wp_breach_protect.php:52
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.