WordPress at Your Fingertips
function is not described

WP_Async_Request::data() public WC 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 5.8.0

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

	return $this;
}