woocommerce_theme_slug_for_templates filter-hookWC 3.3.0

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

wc_get_theme_slug_for_templates()
woocommerce_theme_slug_for_templates
woocommerce/includes/wc-template-functions.php 3809
return apply_filters( 'woocommerce_theme_slug_for_templates', get_option( 'template' ) );

Where the hook is used in WooCommerce

Usage not found.