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() .


Top ↑

Parameters

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

Top ↑

Source

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

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


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

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