Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks
CycleStateService::get_option_name
Get the option name.
Method of the class: CycleStateService{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->get_option_name( $product_id ): string;
- $product_id(int) (required)
- The product ID.
CycleStateService::get_option_name() CycleStateService::get option name code WC 10.3.6
private function get_option_name( int $product_id ): string {
if ( $product_id <= 0 ) {
return '';
}
return self::STATE_OPTION_PREFIX . $product_id;
}