mailpoet_email_editor_preview_post_template_html filter-hookWC 1.0

This file is part of the MailPoet Email Editor package. Template canvas file to render the emails custom post type.

Usage

add_filter( 'mailpoet_email_editor_preview_post_template_html', 'wp_kama_mailpoet_email_editor_preview_post_template_html_filter' );

/**
 * Function for `mailpoet_email_editor_preview_post_template_html` filter-hook.
 * 
 * @param  $post 
 *
 * @return 
 */
function wp_kama_mailpoet_email_editor_preview_post_template_html_filter( $post ){

	// filter...
	return $post;
}
$post
-

Where the hook is called

In file: /packages/email-editor/src/Engine/Templates/single-email-post-template.php
mailpoet_email_editor_preview_post_template_html
woocommerce/packages/email-editor/src/Engine/Templates/single-email-post-template.php 10
$template_html = apply_filters( 'mailpoet_email_editor_preview_post_template_html', get_post() );

Where the hook is used in WooCommerce

Usage not found.