1. 정확한 제품 또는 플러그인 이름
우커머스, Hello Elementor Child 테마 사용중입니다.
2. 상세 내용
회원가입, 구매, 비밀번호찾기 등 이메일이 전송 되는데, 그 내용에 html 코드 그대로 노출되어 전송됩니다.
3. 확인 가능한 상세 페이지 주소
https://imgur.com/a/2ob6fxM
4. 수정한 코드 내역 (있다면)
/www/wp-content/themes/hello-elementor/functions.php
/www/wp-content/themes/hello-theme-child-master/functions.php
/www/wp-content/themes/twentytwentyfour/functions.php
위 경로의 functions.php 파일 3개에 add_filter('wp_mail_content_type', function() { return 'text/html'; }); 소스 추가하였습니다.
AI에 의해 자동 생성된 답변이에요 😀
안녕하세요! 이메일 내용에 HTML 코드가 그대로 노출되는 문제는 wp_mail_content_type 필터를 통해 이메일 콘텐츠 유형을 text/html로 설정했음에도 발생할 수 있습니다. 이 경우, 이메일을 보내는 과정에서 다른 필터나 플러그인이 HTML 코드를 변조할 수 있습니다. 이런 경우에는 이메일을 보내기 전에 HTML 코드를 필터링하거나 이메일 템플릿을 수정하여 문제를 해결할 수 있습니다. 또한, 테마의 functions.php 파일에 코드를 추가하는 것 외에도, 다른 플러그인이나 기능이 HTML 코드를 변경하고 있는지 확인해 보시는 것도 좋습니다. 계속해서 문제를 해결하기 위해 노력해 보세요! WordPress 지식을 바탕으로 도움이 되도록 최선을 다하겠습니다.
↓ 아래 버튼을 눌러서 피드백해주세요.