Automattic\WooCommerce\Admin\API
DataDownloadIPs::prepare_links()
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() DataDownloadIPs::prepare links code WC 9.7.1
protected function prepare_links( $item ) { $links = array( 'collection' => array( 'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ), ), ); return $links; }