translation_file_format

translation_file_format

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('translation_file_format') is found 1 times:

  • /wp-includes/l10n.php line 816
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    *
     * @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();