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.
Метод класса: WP_Translation_Controller{}
Хуков нет.
Возвращает
WP_Translation_Controller
.
Использование
$result = WP_Translation_Controller::get_instance(): WP_Translation_Controller;
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Translation_Controller::get_instance() WP Translation Controller::get instance WP 6.6.2
public static function get_instance(): WP_Translation_Controller { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; }