get_available_languages

get_available_languages

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_available_languages') is found 1 times:

  • /wp-includes/l10n.php line 1505
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
         *
         * @param string[] $languages An array of available language codes.
         * @param string   $dir       The directory where the language files were found.
         */
        return apply_filters( 'get_available_languages', array_unique( $languages ), $dir );
    }
     
    /**
     * Gets installed translations.
     *
     * Looks in the wp-content/languages directory for translations of

See this hook used in plugins: