wordpress / latest / classes / wp_textdomain_registry / set_custom_path.html

WP_Textdomain_Registry::set_custom_path( string $domain, string $path )

Sets the custom path to the plugin’s/theme’s languages directory.

Description

Used by load_plugin_textdomain() and load_theme_textdomain() .

Parameters

$domain string Required
Text domain.
$path string Required
Language directory path.

Source

File: wp-includes/class-wp-textdomain-registry.php. View all references

public function set_custom_path( $domain, $path ) {
	$this->custom_paths[ $domain ] = untrailingslashit( $path );
}

Uses

Uses Description

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_textdomain_registry/set_custom_path