Warning: This function has been deprecated. Use wp_nonce_ays() instead.

wp_explain_nonce() WordPress Function

This function was introduced in WordPress 2.0.3 and is used to help explain what a nonce is and why it's important. A nonce is a "number used once" and is a security measure to help protect against certain types of attacks. When a form is submitted, the nonce is checked to make sure that it's a valid request. If it's not a valid request, the form submission is rejected.

wp_explain_nonce( string $action ) #

Retrieve nonce action “Are you sure” message.


Description

Deprecated in 3.4.1 and 3.5.0. Backported to 3.3.3.

Top ↑

See also


Top ↑

Parameters

$action

(string)(Required)Nonce action.


Top ↑

Return

(string) Are you sure message.


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.0.4Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More