WordPress at Your Fingertips
function is not described

WP_Async_Request::__construct() public WC 1.0

Initiate new async request

{} It's a method of the class: WP_Async_Request{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Async_Request = new WP_Async_Request();
$WP_Async_Request->__construct();

Code of WP_Async_Request::__construct() WC 5.8.0

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' ) );
}