WP_Async_Request::dispatch
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() WP Async Request::dispatch code WC 10.9.3
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 );
}