woocommerce_theme_slug_for_templates хук-фильтр . WC 3.3.0
Get a slug identifying the current theme.
Использование
add_filter( 'woocommerce_theme_slug_for_templates', 'filter_function_name_9853' ); function filter_function_name_9853( $option ){ // filter... return $option; }
- $option
- -
Список изменений
С версии 3.3.0 | Введена. |
Где вызывается хук
woocommerce_theme_slug_for_templates
woocommerce/includes/wc-template-functions.php 3606
return apply_filters( 'woocommerce_theme_slug_for_templates', get_option( 'template' ) );