single-email-post-template.php
14 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This file is part of the WooCommerce Email Editor package. |
| 4 | * Template canvas file to render the emails custom post type. |
| 5 | * |
| 6 | * @package Automattic\WooCommerce\EmailEditor |
| 7 | */ |
| 8 | |
| 9 | // get the rendered post HTML content. |
| 10 | $template_html = apply_filters( 'woocommerce_email_editor_preview_post_template_html', get_post() ); |
| 11 | |
| 12 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 13 | echo $template_html; |
| 14 |