Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors

Typography_Preprocessor::filterStylesprivateWC 1.0

Filter styles to only include typography styles

Method of the class: Typography_Preprocessor{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->filterStyles( $styles ): array;
$styles(array) (required)
List of styles.

Typography_Preprocessor::filterStyles() code WC 10.7.0

private function filterStyles( array $styles ): array {
	return array_intersect_key( $styles, array_flip( self::TYPOGRAPHY_STYLES ) );
}