Automattic\WooCommerce\StoreApi\Routes\V1

ProductsById::get_path()publicWC 1.0

Get the path of this REST route.

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

Хуков нет.

Возвращает

Строку.

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

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

Код ProductsById::get_path() WC 8.7.0

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