Automattic\WooCommerce\EmailEditor\Engine
Settings_Controller::get_email_styles
Get the email styles.
Method of the class: Settings_Controller{}
No Hooks.
Returns
Array{ . spacing: array{
blockGap: string,
padding: array{bottom: string, left: string, right: string, top: string}
}, color: array{
background: string, text: string
}, typography: array{
fontFamily: string
} }
Usage
$Settings_Controller = new Settings_Controller(); $Settings_Controller->get_email_styles(): array;
Settings_Controller::get_email_styles() Settings Controller::get email styles code WC 10.7.0
public function get_email_styles(): array {
$theme = $this->get_theme();
return $theme->get_data()['styles'];
}