wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_is_update_nonce_with_ajax

wpdiscuz_is_update_nonce_with_ajax

This filter is used to enable updating the nonce via an AJAX request.

Parameters

  1. $isUpdateNonceWithAjax – enable/disable nonce updates in AJAX requests.
  2. $currentUser – the object of the current user

Usage

add_filter('wpdiscuz_is_update_nonce_with_ajax', '__return_true');

Changelog

Aadded starting from 7.6.46 version