MailPoet\EmailEditor\Engine
Theme_Controller::get_settings()
Get settings from the theme.
Method of the class: Theme_Controller{}
No Hooks.
Return
Array
.
Usage
$Theme_Controller = new Theme_Controller(); $Theme_Controller->get_settings(): array;
Theme_Controller::get_settings() Theme Controller::get settings code WC 9.8.2
public function get_settings(): array { $email_editor_theme_settings = $this->get_theme()->get_settings(); $site_theme_settings = WP_Theme_JSON_Resolver::get_theme_data()->get_settings(); $email_editor_theme_settings['color']['palette']['theme'] = array(); if ( isset( $site_theme_settings['color']['palette']['theme'] ) ) { $email_editor_theme_settings['color']['palette']['theme'] = $site_theme_settings['color']['palette']['theme']; } return $email_editor_theme_settings; }