woocommerce_single_product_flexslider_enabled хук-фильтр . WC 3.3.2
Get HTML for a gallery image.
Hooks: woocommerce_gallery_thumbnail_size, woocommerce_gallery_image_size and woocommerce_gallery_full_size accept name based image sizes, or an array of width/height values.
Использование
add_filter( 'woocommerce_single_product_flexslider_enabled', 'filter_function_name_9048' ); function filter_function_name_9048( $attachment_id ){ // filter... return $attachment_id; }
- $attachment_id(число)
- Attachment ID.
Список изменений
С версии 3.3.2 | Введена. |
Где вызывается хук
woocommerce_single_product_flexslider_enabled
woocommerce_single_product_flexslider_enabled
woocommerce/includes/wc-template-functions.php 1457
$flexslider = (bool) apply_filters( 'woocommerce_single_product_flexslider_enabled', get_theme_support( 'wc-product-gallery-slider' ) );
woocommerce/includes/class-wc-frontend-scripts.php 503
'flexslider_enabled' => apply_filters( 'woocommerce_single_product_flexslider_enabled', get_theme_support( 'wc-product-gallery-slider' ) ),