Title: wp_explain_nonce
Published: April 25, 2014
Last modified: April 28, 2025

---

# wp_explain_nonce( string $action ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.4.1. Use [wp_nonce_ays()](https://developer.wordpress.org/reference/functions/wp_nonce_ays/)
instead.

Retrieve nonce action “Are you sure” message.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#description)󠁿

Deprecated in 3.4.1 and 3.5.0. Backported to 3.3.3.

### 󠀁[See also](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#see-also)󠁿

 * [wp_nonce_ays()](https://developer.wordpress.org/reference/functions/wp_nonce_ays/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#parameters)󠁿

 `$action`stringrequired

Nonce action.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#return)󠁿

 string Are you sure message.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#source)󠁿

    ```php
    function wp_explain_nonce( $action ) {
    	_deprecated_function( __FUNCTION__, '3.4.1', 'wp_nonce_ays()' );
    	return __( 'Are you sure you want to do this?' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/deprecated.php#L3150)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/deprecated.php#L3150-L3153)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#related)󠁿

| Uses | Description | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_explain_nonce/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.0.4](https://developer.wordpress.org/reference/since/2.0.4/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_explain_nonce%2F)
before being able to contribute a note or feedback.