_wpsc_ajax_verify_nonce

Verify nonce of an AJAX request.

Description

(WP_Error|boolean) _wpsc_ajax_verify_nonce( (string) $ajax_action ); 

Returns (WP_Error|boolean)

True if nonce is valid. WP_Error if otherwise.

Parameters (1)

0. $ajax_action (string)
Name of AJAX action

Usage

  1. if ( !function_exists( '_wpsc_ajax_verify_nonce' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/ajax.php'; 
  3.  
  4. // Name of AJAX action 
  5. $ajax_action = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _wpsc_ajax_verify_nonce($ajax_action); 
  9.  

Defined (1)

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

/wpsc-admin/ajax.php