WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

ProductsById::get_path() public WC 1.0

Get the path of this REST route.

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

No Hooks.

Return

String.

Usage

$ProductsById = new ProductsById();
$ProductsById->get_path();

Code of ProductsById::get_path() WC 5.8.0

public function get_path() {
	return '/products/(?P<id>[\d]+)';
}