MailPoet\EmailEditor\Engine

Settings_Controller::get_email_styles()publicWC 1.0

Get the email styles.

Method of the class: Settings_Controller{}

No Hooks.

Return

Array{ . spacing: array{

blockGap: string,
padding: array{bottom: string, left: string, right: string, top: string}

}, color: array{

background: string

}, typography: array{

fontFamily: string

} }

Usage

$Settings_Controller = new Settings_Controller();
$Settings_Controller->get_email_styles(): array;

Settings_Controller::get_email_styles() code WC 9.8.1

public function get_email_styles(): array {
	$theme = $this->get_theme();
	return $theme->get_data()['styles'];
}