WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp nonce ays

Description

Display 'Are you sure you want to do this?' message to confirm the action being taken.

If the action has the nonce explain message, then it will be displayed along with the 'Are you sure?' message.

Usage

<?php wp_nonce_ays$action ?>

Parameters

$action
(string) (required) The nonce action.
Default: None

Return Values

(void) 
This function does not return a value.

Examples

Notes

Change Log

Since: 2.0.4

Source File

wp_nonce_ays() is located in wp-includes/functions.php.

Related

Nonce functions: wp_explain_nonce(), wp_nonce_ays(), wp_nonce_field(), wp_nonce_url(), wp_verify_nonce(), wp_create_nonce(), check_admin_referer(), check_ajax_referer(), wp_referer_field()

See also index of Function Reference and index of Template Tags.