wp_get_pomo_file_data

Advertisement

Summery Summery

Extract headers from a PO file.

Syntax Syntax

wp_get_pomo_file_data( string $po_file )

Parameters Parameters

$po_file

(Required) Path to PO file.

Return Return

(string[]) Array of PO file header values keyed by header name.

Source Source

File: wp-includes/l10n.php

	 * @param string   $dir       The directory where the language files were found.
	 */
	return apply_filters( 'get_available_languages', $languages, $dir );
}

/**
 * Get installed translations.
 *
 * Looks in the wp-content/languages directory for translations of
 * plugins or themes.
 *
 * @since 3.7.0
 *
 * @param string $type What to search for. Accepts 'plugins', 'themes', 'core'.
 * @return array Array of language data.
 */

Advertisement

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.

Advertisement

Leave a Reply