Automattic\WooCommerce\Admin\API
DataDownloadIPs::prepare_links
Prepare links for the request.
Method of the class: DataDownloadIPs{}
No Hooks.
Returns
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() DataDownloadIPs::prepare links code WC 10.4.3
protected function prepare_links( $item ) {
$links = array(
'collection' => array(
'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ),
),
);
return $links;
}