WP_Translation_Controller::get_entries( string $textdomain = 'default' ): array<string,

In this article

Returns all entries for a given text domain.

Parameters

$textdomainstringoptional
Text domain. Default 'default'.

Default:'default'

Return

array<string, string> Entries.

Source

public function get_entries( string $textdomain = 'default' ): array {
	if ( array() === $this->loaded_translations ) {
		return array();
	}

	$entries = array();

	foreach ( $this->get_files( $textdomain ) as $moe ) {
		$entries = array_merge( $entries, $moe->entries() );
	}

	return $entries;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.