woocommerce_theme_slug_for_templates
Get a slug identifying the current theme.
Usage
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
- -
Changelog
| Since 3.3.0 | Introduced. |
Where the hook is called
woocommerce_theme_slug_for_templates
woocommerce/includes/wc-template-functions.php 4325
return apply_filters( 'woocommerce_theme_slug_for_templates', get_option( 'template' ) );