bb_nonce_ays

The BuddyPress bb nonce ays function.

Description

bb_nonce_ays( $action ); 

Parameters (1)

0. $action
The action.

Usage

  1. if ( !function_exists( 'bb_nonce_ays' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-core.php'; 
  3.  
  4. // The action. 
  5. $action = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_nonce_ays($action); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_nonce_ays( $action ) 
  2. $title = __( 'bbPress Failure Notice' ); 
  3. $html .= "\t<div id='message' class='updated fade'>\n\t<p>" . esc_html( bb_explain_nonce( $action ) ) . "</p>\n\t<p>"; 
  4. if ( wp_get_referer() ) 
  5. $html .= "<a href='" . remove_query_arg( 'updated', esc_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; 
  6. $html .= "</p>\n\t</div>\n"; 
  7. $html .= "</body>\n</html>"; 
  8. bb_die( $html, $title );