Automattic\WooCommerce\StoreApi\Routes\V1

ProductsById::get_path_regex │ public static │ WC 1.0

Get the path of this rest route.

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

Хуков нет.

Возвращает

string.

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

$result = ProductsById::get_path_regex();

Код ProductsById::get_path_regex() WC 11.2.2

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