목표 맞춤 이메일 헤더가있는 특정 이메일의 기본 email-header.php를 바꿉니다. 나는 을 가리키고 전자 메일 헤더 템플릿 파일을 구분합니다.추가 정보 - 각 전자 메일 유형에 대해 서로 다른 Woocommerce 헤더
나는이 워드 프레스 : 4.9.1 Woocommerce : Woocommerce different headers for each email types
여기 @helgatheviking에 의해 제공 내가 코드 솔루션을 다음이 여기에 제공되는 솔루션을 기반으로하는 질문은 3.2.5
: https://stackoverflow.com/a/27406663/8044005
아마도 이전에 제공된 솔루션은 WC
,174,515 WP & 변경으로 인해 작동하지 내 functions.php에서나는
function so_27400044_remove_email_header(){
remove_action('woocommerce_email_header', 'email_header');
}
add_action('init', 'so_27400044_remove_email_header');
내가이 관리 신규 주문 이메일에 대한 새로운 헤더 파일을 만든 내가
<?php do_action('woocommerce_email_header', $email_heading, $email); ?>
<?php wc_get_template('emails/admin-new-order-header.php', array('email_heading' => $email_heading)) ; ?>
이 내 관리자 - 새로운 order.php에 대한 참조를 추가 한 이 이메일을 테스트 할 때 두 헤더를 모두 얻습니다! 기존뿐만 아니라 내가 만든 새로운 헤더!
안내해주세요.
고맙습니다.
[각 전자 메일 유형에 대한 다른 웹 메일 헤더] (https://stackoverflow.com/questions/27400044/woocommerce-different-headers-for-each-email-types) – localheinz
에 대한 참조를 이미 언급했습니다. 원래 스레드 및 그것에뿐만 아니라 연결되어 있습니다. – KoolPal