WP_Async_Request::maybe_handle
Maybe handle
Check for correct nonce and pass to handler.
Method of the class: WP_Async_Request{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Async_Request = new WP_Async_Request(); $WP_Async_Request->maybe_handle();
WP_Async_Request::maybe_handle() WP Async Request::maybe handle code WC 10.3.6
public function maybe_handle() {
// Don't lock up other requests while processing.
session_write_close();
check_ajax_referer( $this->identifier, 'nonce' );
$this->handle();
wp_die();
}