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:

functions.php
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.

  1. LiteSpeed Cache icon LiteSpeed Cache7+ million installs apply_filters( 'nonce_user_logged_out', $uid, $action ) litespeed-cache.php:183
  2. MainWP Child icon MainWP Child700,000+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) includes/functions.php:48
  3. Post Views Counter icon Post Views Counter100,000+ installs apply_filters( 'nonce_user_logged_out', 0, 'wp_rest' ) includes/class-status-delivery.php:484
  4. Mailchimp List Subscribe Form icon Mailchimp List Subscribe Form60,000+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) mailchimp.php:986
  5. Powerkit icon Powerkit10,000+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) core/core-powerkit-helpers.php:452
  6. MainWP Key Maker icon MainWP Key Maker3,000+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) mainwp-key-maker.php:225
  7. Hash Form Builder icon Hash Form Builder3,000+ installs apply_filters( 'nonce_user_logged_out', 0, $action ) includes/HashFormHelper.php:48
  8. Rede Itaú for WooCommerce icon Rede Itaú for WooCommerce1,000+ installs apply_filters( 'nonce_user_logged_out', 0, $action ) Includes/LknIntegrationRedeForWoocommerceHelper.php:418
  9. AppPresser icon AppPresser900+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) modules/lms/includes/nonce-fix.php:14
  10. BuddyForms icon BuddyForms800+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) includes/functions.php:1268
  11. CIELO API PIX, credit card, debit payment for WooCommerce icon CIELO API PIX, credit card, debit payment for WooCommerce700+ installs apply_filters( 'nonce_user_logged_out', 0, $action ) includes/LknWcCieloHelper.php:1069
  12. Fraud and Scam Detection For WooCommerce icon Fraud and Scam Detection For WooCommerce200+ installs apply_filters( 'nonce_user_logged_out', 0, $action ) Includes/LknFsdwFraudAndScamDetectionForWoocommerceHelper.php:334
  13. vjoon WordPress Adapter icon vjoon WordPress Adapter10+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) src/Authorization.php:31
  14. Noncensible icon Noncensible10+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) noncensible.php:68
  15. EasyTranslate icon EasyTranslate10+ installs apply_filters( 'nonce_user_logged_out', $uid, $action ) admin/functions.php:229
  16. DigitalM Inside SEO icon DigitalM Inside SEO10+ installs apply_filters( 'nonce_user_logged_out', 0, $action ) includes/class-seoh-view.php:186
  17. Wonderful Geo Page Cache icon Wonderful Geo Page CacheFewer than 10 installs apply_filters( 'nonce_user_logged_out', 0, $action ) wonderful-geo-page-cache.php:759
  18. wp_breach_protect icon 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.