Sets the translation domain for this dependency.
(string) (Required) The translation textdomain.
(string) (Optional) The full file path to the directory containing translation files.
Default value: null
(bool) False if $domain is not a string, true otherwise.
File: wp-includes/class-wp-dependency.php
public function set_translations( $domain, $path = null ) { if ( ! is_string( $domain ) ) { return false; } $this->textdomain = $domain; $this->translations_path = $path; return true; }
Version | Description |
---|---|
5.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/_wp_dependency/set_translations