WP_Async_Request::data()publicWC 1.0

Set data used during the request

Method of the class: WP_Async_Request{}

No Hooks.

Return

$this.

Usage

$WP_Async_Request = new WP_Async_Request();
$WP_Async_Request->data( $data );
$data(array) (required)
Data.

WP_Async_Request::data() code WC 8.7.0

public function data( $data ) {
	$this->data = $data;

	return $this;
}