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.
Метод класса: Theme_Controller{}
Хуки из метода
Возвращает
WP_Theme_JSON.
Использование
$Theme_Controller = new Theme_Controller(); $Theme_Controller->get_base_theme(): WP_Theme_JSON;
Код Theme_Controller::get_base_theme() Theme Controller::get base theme WC 10.7.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 );
$theme->merge( $site_theme );
}
return apply_filters( 'woocommerce_email_editor_theme_json', $theme );
}