mailpoet_email_editor_theme_json
Usage
add_filter( 'mailpoet_email_editor_theme_json', 'wp_kama_mailpoet_email_editor_theme_json_filter' ); /** * Function for `mailpoet_email_editor_theme_json` filter-hook. * * @param $theme * * @return */ function wp_kama_mailpoet_email_editor_theme_json_filter( $theme ){ // filter... return $theme; }
- $theme
- -
Where the hook is called
mailpoet_email_editor_theme_json
woocommerce/packages/email-editor/src/Engine/class-theme-controller.php 73
return apply_filters( 'mailpoet_email_editor_theme_json', $theme );
Where the hook is used in WooCommerce
woocommerce/packages/email-editor/src/Integrations/Core/class-initializer.php 23
add_filter( 'mailpoet_email_editor_theme_json', array( $this, 'adjust_theme_json' ), 10, 1 );