WP_Async_Request::dispatch()

Dispatch the async request

Description

Return

(array|WP_Error)

Source

File: bp-core/libraries/wp-async-request.php

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

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.