WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
24 | * |
25 | * @return void |
26 | */ |
27 | public static function get_non_latin_css( $type = 'front-end' ) { |
28 |
|
29 | // Fetch site locale. |
30 | $locale = get_bloginfo( 'language' ); |
31 |
|
32 | // Define fallback fonts for non-latin languages. |
33 | $font_family = apply_filters( |
34 | 'twentytwenty_get_localized_font_family_types', |
35 | array( |
36 |
|
37 | // Arabic. |
38 | 'ar' => array( 'Tahoma', 'Arial', 'sans-serif' ), |
39 | 'ary' => array( 'Tahoma', 'Arial', 'sans-serif' ), |
40 | 'azb' => array( 'Tahoma', 'Arial', 'sans-serif' ), |
41 | 'ckb' => array( 'Tahoma', 'Arial', 'sans-serif' ), |
42 | 'fa-IR' => array( 'Tahoma', 'Arial', 'sans-serif' ), |