WordPress at Your Fingertips
function is not described

WC_Background_Emailer::get_post_args() protected WC 1.0

Get post args

{} It's a method of the class: WC_Background_Emailer{}

Hooks from the method
Return

Array.

Usage

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

Code of WC_Background_Emailer::get_post_args() WC 5.6.0

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

	// Pass cookies through with the request so nonces function.
	$cookies = array();

	foreach ( $_COOKIE as $name => $value ) { // WPCS: input var ok.
		if ( 'PHPSESSID' === $name ) {
			continue;
		}
		$cookies[] = new WP_Http_Cookie( array(
			'name'  => $name,
			'value' => $value,
		) );
	}

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