Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Preprocessors
Typography_Preprocessor::filterStyles
Filter styles to only include typography styles
Метод класса: Typography_Preprocessor{}
Хуков нет.
Возвращает
Массив.
Использование
// private - только в коде основоного (родительского) класса $result = $this->filterStyles( $styles ): array;
- $styles(массив) (обязательный)
- List of styles.
Код Typography_Preprocessor::filterStyles() Typography Preprocessor::filterStyles WC 11.0.1
private function filterStyles( array $styles ): array {
return array_intersect_key( $styles, array_flip( self::TYPOGRAPHY_STYLES ) );
}