WP_Translation_Controller::get_instance()
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
Method of the class: WP_Translation_Controller{}
No Hooks.
Return
WP_Translation_Controller
.
Usage
$result = WP_Translation_Controller::get_instance(): WP_Translation_Controller;
Changelog
Since 6.5.0 | Introduced. |
WP_Translation_Controller::get_instance() WP Translation Controller::get instance code WP 6.8
public static function get_instance(): WP_Translation_Controller { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; }