woocommerce_email_editor_theme_json
Usage
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
- -
Where the hook is called
woocommerce_email_editor_theme_json
woocommerce/packages/email-editor/src/Engine/class-theme-controller.php 89
return apply_filters( 'woocommerce_email_editor_theme_json', $theme );
Where the hook is used in WooCommerce
woocommerce/packages/email-editor/src/Integrations/Core/class-initializer.php 104
add_filter( 'woocommerce_email_editor_theme_json', array( $this, 'adjust_theme_json' ), 10, 1 );