Automattic\WooCommerce\Admin\API
DataDownloadIPs::prepare_links()
Prepare links for the request.
Метод класса: DataDownloadIPs{}
Хуков нет.
Возвращает
Массив
. Links for the given object.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->prepare_links( $item );
- $item(объект) (обязательный)
- Data object.
Код DataDownloadIPs::prepare_links() DataDownloadIPs::prepare links WC 8.3.1
protected function prepare_links( $item ) { $links = array( 'collection' => array( 'href' => rest_url( sprintf( '/%s/%s', $this->namespace, $this->rest_base ) ), ), ); return $links; }