Automattic\WooCommerce\StoreApi\Routes\V1

ProductsById::get_path_regexpublic staticWC 1.0

Get the path of this rest route.

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

Хуков нет.

Возвращает

Строку.

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

$result = ProductsById::get_path_regex();

Код ProductsById::get_path_regex() WC 10.0.2

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