Automattic\WooCommerce\EmailEditor\Engine

Settings_Controller::get_email_stylespublicWC 1.0

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() code WC 10.6.2

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