Automattic\WooCommerce\Admin\API

DataDownloadIPs::prepare_links()protectedWC 1.0

Prepare links for the request.

Method of the class: DataDownloadIPs{}

No Hooks.

Return

Array. Links for the given object.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_links( $item );
$item(object) (required)
Data object.

DataDownloadIPs::prepare_links() code WC 8.7.0

protected function prepare_links( $item ) {
	$links = array(
		'collection' => array(
			'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ),
		),
	);
	return $links;
}