Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks
CycleStateService::get_option_name
Get the option name.
Метод класса: CycleStateService{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_option_name( $product_id ): string;
- $product_id(int) (обязательный)
- The product ID.
Код CycleStateService::get_option_name() CycleStateService::get option name WC 11.2.2
private function get_option_name( int $product_id ): string {
if ( $product_id <= 0 ) {
return '';
}
return self::STATE_OPTION_PREFIX . $product_id;
}