woocommerce_email_editor_register_templates
Initialize the template registry. This method should be called only once.
Usage
add_filter( 'woocommerce_email_editor_register_templates', 'wp_kama_woocommerce_email_editor_register_templates_filter' );
/**
* Function for `woocommerce_email_editor_register_templates` filter-hook.
*
* @param $that
*
* @return
*/
function wp_kama_woocommerce_email_editor_register_templates_filter( $that ){
// filter...
return $that;
}
- $that
- -
Where the hook is called
woocommerce_email_editor_register_templates
woocommerce/packages/email-editor/src/Engine/Templates/class-templates-registry.php 30
apply_filters( 'woocommerce_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( 'woocommerce_email_editor_register_templates', array( $this, 'register_templates' ) );
woocommerce/src/Internal/EmailEditor/EmailTemplates/TemplatesController.php 34
add_filter( 'woocommerce_email_editor_register_templates', array( $this, 'register_templates' ) );