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

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

add_filter( 'woocommerce_email_editor_theme_json', 'wp_kama_woocommerce_email_editor_theme_json_filter' );

/**
 * Function for `woocommerce_email_editor_theme_json` filter-hook.
 * 
 * @param  $theme 
 *
 * @return 
 */
function wp_kama_woocommerce_email_editor_theme_json_filter( $theme ){
	// filter...
	return $theme;
}
$theme
-

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

Theme_Controller::get_base_theme()
woocommerce_email_editor_theme_json
woocommerce/packages/email-editor/src/Engine/class-theme-controller.php 90
return apply_filters( 'woocommerce_email_editor_theme_json', $theme );

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

woocommerce/packages/email-editor/src/Integrations/Core/class-initializer.php 106
add_filter( 'woocommerce_email_editor_theme_json', array( $this, 'adjust_theme_json' ), 10, 1 );