load_translation_file

load_translation_file

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('load_translation_file') is found 1 times:

  • /wp-includes/l10n.php line 842
    		 * @param string $file   Path to the translation file to load.
    		 * @param string $domain The text domain.
    		 * @param string $locale The locale.
    		 */
    		$file = (string) apply_filters( 'load_translation_file', $file, $domain, $locale );
    
    		$success = $i18n_controller->load_file( $file, $domain, $locale );
    
    		if ( $success ) {
    			if ( isset( $l10n[ $domain ] ) && $l10n[ $domain ] instanceof MO ) {
    				$i18n_controller->load_file( $l10n[ $domain ]->get_filename(), $domain, $locale );
    

See this hook used in plugins: