Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Typography_Preprocessor::filterStyles
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() Typography Preprocessor::filterStyles code WC 10.7.0
private function filterStyles( array $styles ): array {
return array_intersect_key( $styles, array_flip( self::TYPOGRAPHY_STYLES ) );
}