mailpoet_email_editor_register_templates
Initialize the template registry. This method should be called only once.
Usage
add_filter( 'mailpoet_email_editor_register_templates', 'wp_kama_mailpoet_email_editor_register_templates_filter' ); /** * Function for `mailpoet_email_editor_register_templates` filter-hook. * * @param $that * * @return */ function wp_kama_mailpoet_email_editor_register_templates_filter( $that ){ // filter... return $that; }
- $that
- -
Where the hook is called
mailpoet_email_editor_register_templates
woocommerce/packages/email-editor/src/Engine/Templates/class-templates-registry.php 30
apply_filters( 'mailpoet_email_editor_register_templates', $this );
Where the hook is used in WooCommerce
woocommerce/packages/email-editor/src/Engine/Templates/class-templates.php 60
add_filter( 'mailpoet_email_editor_register_templates', array( $this, 'register_templates' ) );
woocommerce/src/Internal/EmailEditor/EmailTemplates/TemplatesController.php 34
add_filter( 'mailpoet_email_editor_register_templates', array( $this, 'register_templates' ) );