WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

AbstractRoute::prepare_links() protected WC 1.0

Prepare links for the request.

{} It's a method of the class: AbstractRoute{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_links( $item, $request );
$item(mixed) (required)
Item to prepare.
$request(\WP_REST_Request) (required)
Request object.

Code of AbstractRoute::prepare_links() WC 5.7.0

protected function prepare_links( $item, $request ) {
	return [];
}