WP_Async_Request::data()publicWC 1.0

Set data used during the request

{} It's a 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.

Code of WP_Async_Request::data() WC 6.9.4

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

	return $this;
}