This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WP_Textdomain_Registry::get_paths_for_domain( string $domain )

Returns possible language directory paths for a given text domain.


Parameters

$domain

(Required) Text domain.


Return

(string[]) Array of language directory paths.


Source

File: wp-includes/class-wp-textdomain-registry.php

	private function get_paths_for_domain( $domain ) {
		$locations = array(
			WP_LANG_DIR . '/plugins',
			WP_LANG_DIR . '/themes',
		);

		if ( isset( $this->custom_paths[ $domain ] ) ) {
			$locations[] = $this->custom_paths[ $domain ];
		}

		return $locations;
	}

Changelog

Changelog
Version Description
6.2.0 Introduced.