woocommerce_email_editor_register_templates хук-фильтрWC 1.0

Initialize the template registry. This method should be called only once.

Использование

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
-

Где вызывается хук

Templates_Registry::initialize()
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 );

Где используется хук в 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' ) );