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