This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Header_Builder_Typo_Configs::get_font_extras_default( string $font_extras_key, string $line_height_key, string $text_transform_key )
Get the customizer defaults for font-extras control.
Description
Parameters
- $font_extras_key
-
(string) (Required) Font extras key.
- $line_height_key
-
(string) (Required) Line height key.
- $text_transform_key
-
(string) (Required) Text transform key.
Return
(array)
Source
File: addons/typography/classes/sections/class-astra-header-builder-typo-configs.php
private function get_font_extras_default( $font_extras_key, $line_height_key, $text_transform_key ) { $astra_options = is_callable( 'Astra_Theme_Options::get_astra_options' ) ? Astra_Theme_Options::get_astra_options() : get_option( ASTRA_THEME_SETTINGS ); return array( 'line-height' => ! isset( $astra_options[ $font_extras_key ] ) && isset( $astra_options[ $line_height_key ] ) ? $astra_options[ $line_height_key ] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options[ $font_extras_key ] ) && isset( $astra_options[ $text_transform_key ] ) ? $astra_options[ $text_transform_key ] : '', 'text-decoration' => '', ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |