I want to display my custom template for Single Product i.e. single-product.php
For WordPress native templates, we can use add_filter( 'single_template', 'custom_single_tmpl' );
and a callback function looks like this:
public function custom_single_tmpl( $tempalte ) {
return PLUG_DIR_PATH . '/templates/custom-single.php';
}
Is there any way to override WooCommerce template files like that?
Edit:
I want to override Header and Footer as well, not only a single product content (same way as WordPress above add_filter
does).