wp_explain_nonce

Retrieve nonce action "Are you sure" message.

Description

(string) wp_explain_nonce( (string) $action ); 

Deprecated in 3.4.1 and 3.5.0. Backported to 3.3.3.

Returns (string)

Are you sure message.

Parameters (1)

0. $action (string)
Nonce action.

Usage

  1. if ( !function_exists( 'wp_explain_nonce' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Nonce action. 
  5. $action = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_explain_nonce($action); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function wp_explain_nonce( $action ) { 
  2. _deprecated_function( __FUNCTION__, '3.4.1', 'wp_nonce_ays()' ); 
  3. return __( 'Are you sure you want to do this?' );