Filter hook 'pre_get_language_files_from_path'

in WP Core File wp-includes/class-wp-textdomain-registry.php at line 187

Description

Retrieves translation files from the specified path. Allows early retrieval through the {@see 'pre_get_mo_files_from_path'} filter to optimize performance, especially in directories with many files.

Occurrences

Filename Line Number
wp-includes/class-wp-textdomain-registry.php 187

Parameters

Type Name Description
string $path The directory path to search for translation files.

PHP Doc

/**
	 * Retrieves translation files from the specified path.
	 *
	 * Allows early retrieval through the {@see 'pre_get_mo_files_from_path'} filter to optimize
	 * performance, especially in directories with many files.
	 *
	 * @since 6.5.0
	 *
	 * @param string $path The directory path to search for translation files.
	 * @return array Array of translation file paths. Can contain .mo and .l10n.php files.
	 */