Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks

CycleStateService::get_option_nameprivateWC 1.0

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() 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;
}