You appear to be a bot. Output may be restricted
Description
Sets the translation domain for this dependency.
Usage
$bool = _WP_Dependency::set_translations( $domain, $path );
Parameters
- $domain
- ( string ) required – The translation textdomain.
- $path
- ( string ) optional – Optional. The full file path to the directory containing translation files.
Returns
bool False if $domain is not a string, true otherwise.
Source
File name: wordpress/wp-includes/class-wp-dependency.php
Lines:
1 to 8 of 8
public function set_translations( $domain, $path = null ) { if ( ! is_string( $domain ) ) { return false; } $this->textdomain = $domain; $this->translations_path = $path; return true; }