MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Typography_Preprocessor::filterStyles()
Filter styles to only include typography styles
Method of the class: Typography_Preprocessor{}
No Hooks.
Return
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 9.8.1
private function filterStyles( array $styles ): array { return array_intersect_key( $styles, array_flip( self::TYPOGRAPHY_STYLES ) ); }