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

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

add_filter( 'woocommerce_email_editor_register_personalization_tags', 'wp_kama_woocommerce_email_editor_register_personalization_tags_filter' );

/**
 * Function for `woocommerce_email_editor_register_personalization_tags` filter-hook.
 * 
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_email_editor_register_personalization_tags_filter( $that ){

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

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

Personalization_Tags_Registry::initialize()
woocommerce_email_editor_register_personalization_tags
woocommerce/packages/email-editor/src/Engine/PersonalizationTags/class-personalization-tags-registry.php 49
apply_filters( 'woocommerce_email_editor_register_personalization_tags', $this );

Где используется хук в WooCommerce

woocommerce/src/Internal/EmailEditor/PersonalizationTagManager.php 67
add_filter( 'woocommerce_email_editor_register_personalization_tags', array( $this, 'register_personalization_tags' ) );