WC_Products_Tracking::get_possible_product_type_options_ids()
Get the IDs of the possible product type options.
Метод класса: WC_Products_Tracking{}
Хуки из метода
Возвращает
Массив
.
Использование
$result = WC_Products_Tracking::get_possible_product_type_options_ids();
Код WC_Products_Tracking::get_possible_product_type_options_ids() WC Products Tracking::get possible product type options ids WC 9.6.0
private static function get_possible_product_type_options_ids() { $product_type_options_ids = array_values( array_map( function ( $product_type_option ) { return $product_type_option['id']; }, /* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */ apply_filters( 'product_type_options', wc_get_default_product_type_options(), ) /* phpcs: enable */ ) ); return $product_type_options_ids; }