lang_codes

lang_codes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('lang_codes') is found 1 times:

  • /wp-admin/includes/ms.php line 550
    	 *
    	 * @param string[] $lang_codes Array of key/value pairs of language codes where key is the short version.
    	 * @param string   $code       A two-letter designation of the language.
    	 */
    	$lang_codes = apply_filters( 'lang_codes', $lang_codes, $code );
    	return strtr( $code, $lang_codes );
    }
    
    /**
     * Displays an access denied message when a user tries to view a site's dashboard they
     * do not have access to.