WP_Async_Request::__construct()
Initiate new async request
Description
Source
File: classes/library/batch-processing/wp-async-request.php
public function __construct() {
$this->identifier = $this->prefix . '_' . $this->action;
add_action( 'wp_ajax_' . $this->identifier, array( $this, 'maybe_handle' ) );
add_action( 'wp_ajax_nopriv_' . $this->identifier, array( $this, 'maybe_handle' ) );
}
Expand full source code Collapse full source code View on Trac