woocommerce_email_editor_preview_post_template_html

woocommerce_email_editor_preview_post_template_html

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_email_editor_preview_post_template_html') is found 1 times:

  • /packages/email-editor/src/Engine/Templates/single-email-post-template.php line 10

    Warning: Undefined array key 13 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 14 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 15 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

     * @package Automattic\WooCommerce\EmailEditor
     */
    
    // get the rendered post HTML content.
    $template_html = apply_filters( 'woocommerce_email_editor_preview_post_template_html', get_post() );
    
    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    echo $template_html;
    
    
    
    

See this hook used in plugins: