Filter hook 'translation_file_format'

in WP Core File wp-includes/l10n.php at line 815

Description

Filters the preferred file format for translation files. Can be used to disable the use of PHP files for translations.

Occurrences

Filename Line Number
wp-includes/l10n.php 815

Parameters

Type Name Description
string $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
string $domain The text domain.

PHP Doc

/**
	 * Filters the preferred file format for translation files.
	 *
	 * Can be used to disable the use of PHP files for translations.
	 *
	 * @since 6.5.0
	 *
	 * @param string $preferred_format Preferred file format. Possible values: 'php', 'mo'. Default: 'php'.
	 * @param string $domain           The text domain.
	 */