WP_Async_Request::dispatch()publicWC 1.0

Dispatch the async request

Method of the class: WP_Async_Request{}

No Hooks.

Return

Array|WP_Error.

Usage

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

WP_Async_Request::dispatch() code WC 8.6.1

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