Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentytwenty_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
23            * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
24            * @return void
25            */
26           public static function get_non_latin_css( $type = 'front-end' ) {
27
28                // Fetch site locale.
29                $locale = get_bloginfo( 'language' );
30
31                // Define fallback fonts for non-latin languages.
32                $font_family = apply_filters(
33                     'twentytwenty_get_localized_font_family_types',
34                     array(
35
36                          // Arabic.
37                          'ar'    => array( 'Tahoma', 'Arial', 'sans-serif' ),
38                          'ary'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
39                          'azb'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
40                          'ckb'   => array( 'Tahoma', 'Arial', 'sans-serif' ),
41                          'fa-IR' => array( 'Tahoma', 'Arial', 'sans-serif' ),