woocommerce_template_directory

woocommerce_template_directory

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_template_directory') is found 2 times:

  • /includes/emails/class-wc-email.php line 866
    	 *
    	 * @return string
    	 */
    	public function get_theme_template_file( $template ) {
    		return get_stylesheet_directory() . '/' . apply_filters( 'woocommerce_template_directory', 'woocommerce', $template ) . '/' . $template;
    	}
    
    	/**
    	 * Move template action.
    	 *
    	 * @param string $template_type Template type.
    
  • /includes/emails/class-wc-email.php line 1024
     
    					$local_file    = $this->get_theme_template_file( $template );
    					$core_file     = $this->template_base . $template;
    					$template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );
    					$template_dir  = apply_filters( 'woocommerce_template_directory', 'woocommerce', $template );
    					?>
    					<div class="template <?php echo esc_attr( $template_type ); ?>">
    						<h4><?php echo wp_kses_post( $title ); ?></h4>
    
    						<?php if ( file_exists( $local_file ) ) : ?>
    							<p>