woocommerce_locate_core_template

woocommerce_locate_core_template

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_locate_core_template') is found 2 times:

  • /includes/emails/class-wc-email.php line 1093
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    if ( wp_mkdir_p( dirname( $theme_file ) ) && ! file_exists( $theme_file ) ) {
     
        // Locate template file.
        $core_file     = $this->template_base . $template;
        $template_file = apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id );
     
        // Copy template file.
        copy( $template_file, $theme_file );
     
        /**
         * Action hook fired after copying email template file.
  • /includes/emails/class-wc-email.php line 1233
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    }
     
    $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 ) ) : ?>