wp_nonce_ays [ WordPress Function ]
wp_nonce_ays ( $action )
| Parameters: |
|
| Defined at: |
|
Display "Are You Sure" 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.
Source
<?php
function wp_nonce_ays( $action ) {
$title = __( 'WordPress Failure Notice' );
$html = esc_html( wp_explain_nonce( $action ) );
if ( 'log-out' == $action )
$html .= "</p><p>" . sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url() );
elseif ( wp_get_referer() )
$html .= "</p><p><a href='" . esc_url( remove_query_arg( 'updated', wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
wp_die( $html, $title, array('response' => 403) );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp nonce ays « WordPress Codex
Description. Display 'Are You Sure?' message to confirm the action being taken. If the action has the nonce explain message, then it will be displayed along with ...
codex.wordpress.org - Function Reference/wp verify nonce « WordPress Codex
Related. Nonce Functions: wp_explain_nonce, wp_nonce_ays, wp_nonce_field, wp_nonce_url, wp_verify_nonce, wp_create_nonce, check_admin_referer, ...
codex.wordpress.org - Function Reference/wp nonce field « WordPress Codex
Related. Nonce Functions: wp_explain_nonce, wp_nonce_ays, wp_nonce_field, wp_nonce_url, wp_verify_nonce, wp_create_nonce, check_admin_referer, ...
codex.wordpress.org - Obscure WordPress Errors – Why? Where? and How?
Jan 6, 2010 ... In particular, this error is reported by the function wp_nonce_ays which is ... The wp_nonce_ays function is called by the check_admin_referer ...
shibashake.com