Automattic\WooCommerce\EmailEditor\Engine
Theme_Controller::get_base_theme
Gets combined theme data from the core and base theme and some handpicked settings from the site theme.
Method of the class: Theme_Controller{}
Hooks from the method
Returns
WP_Theme_JSON.
Usage
$Theme_Controller = new Theme_Controller(); $Theme_Controller->get_base_theme(): WP_Theme_JSON;
Theme_Controller::get_base_theme() Theme Controller::get base theme code WC 10.5.0
public function get_base_theme(): WP_Theme_JSON {
$theme = new WP_Theme_JSON();
$theme->merge( $this->core_theme );
$theme->merge( $this->base_theme );
// Merge synced styles from current active theme.
if ( $this->site_style_sync_controller->is_sync_enabled() ) {
/** @var WP_Theme_JSON $site_theme */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
$site_theme = $this->site_style_sync_controller->get_theme();
$theme->merge( $site_theme );
}
return apply_filters( 'woocommerce_email_editor_theme_json', $theme );
}