Automattic\WooCommerce\Admin\API

DataDownloadIPs::prepare_links()protectedWC 1.0

Prepare links for the request.

Метод класса: DataDownloadIPs{}

Хуков нет.

Возвращает

Массив. Links for the given object.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->prepare_links( $item );
$item(объект) (обязательный)
Data object.

Код DataDownloadIPs::prepare_links() 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;
}