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 |
|---|---|
| 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' ), |