WP_Translation_Controller::get_locale()
Returns the current locale.
Method of the class: WP_Translation_Controller{}
No Hooks.
Return
String
. Locale.
Usage
$WP_Translation_Controller = new WP_Translation_Controller(); $WP_Translation_Controller->get_locale(): string;
Changelog
Since 6.5.0 | Introduced. |
WP_Translation_Controller::get_locale() WP Translation Controller::get locale code WP 6.7.1
public function get_locale(): string { return $this->current_locale; }