translation_file_format

translation_file_format

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('translation_file_format') is found 1 times:

  • /wp-includes/l10n.php line 815
    	 *
    	 * @param string $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
    	 * @param string $domain           The text domain.
    	 */
    	$preferred_format = apply_filters( 'translation_file_format', 'php', $domain );
    	if ( ! in_array( $preferred_format, array( 'php', 'mo' ), true ) ) {
    		$preferred_format = 'php';
    	}
    
    	$translation_files = array();