Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twenty_twenty_one_get_localized_font_family_types

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
214  *
215  * @return string
216  */
217 function twenty_twenty_one_get_non_latin_css( $type = 'front-end' ) {
218
219      // Fetch site locale.
220      $locale = get_bloginfo( 'language' );
221
222      // Define fallback fonts for non-latin languages.
223      $font_family = apply_filters(
224           'twenty_twenty_one_get_localized_font_family_types',
225           array(
226
227                // Arabic.
228                'ar'    => array( 'Tahoma', 'Arial', 'sans-serif' ),
229                'ary'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
230                'azb'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
231                'ckb'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
232                'fa-IR' => array( 'Tahoma', 'Arial', 'sans-serif' ),