WP_Async_Request::get_post_args()protectedWC 1.0

Get post args

Method of the class: WP_Async_Request{}

Hooks from the method

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_post_args();

WP_Async_Request::get_post_args() code WC 8.7.0

protected function get_post_args() {
	if ( property_exists( $this, 'post_args' ) ) {
		return $this->post_args;
	}

	return array(
		'timeout'   => 0.01,
		'blocking'  => false,
		'body'      => $this->data,
		'cookies'   => $_COOKIE,
		'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
	);
}