WP_Async_Request::dispatchpublicWC 1.0

Dispatch the async request

Method of the class: WP_Async_Request{}

No Hooks.

Returns

Array|WP_Error.

Usage

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

WP_Async_Request::dispatch() code WC 9.9.5

public function dispatch() {
	$url  = add_query_arg( $this->get_query_args(), $this->get_query_url() );
	$args = $this->get_post_args();

	return wp_remote_post( esc_url_raw( $url ), $args );
}