Automattic\WooCommerce\Internal\RestApi\Routes\V4
AbstractController::prepare_links
Prepare links for the request.
Метод класса: AbstractController{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->prepare_links( $item, $request, $response ): array;
- $item(разное) (обязательный)
- WordPress representation of the item.
- $request(WP_REST_Request) (обязательный)
- Request object.
- $response(WP_REST_Response) (обязательный)
- Response object.
Код AbstractController::prepare_links() AbstractController::prepare links WC 11.0.1
protected function prepare_links( $item, WP_REST_Request $request, WP_REST_Response $response ): array {
return array();
}