WordPress at Your Fingertips
function is not described

WP_Async_Request::dispatch() public WC 1.0

Dispatch the async request

{} It's a 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();

Code of WP_Async_Request::dispatch() WC 5.8.0

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