WP_Site_Health::get_instance
Returns an instance of the WP_Site_Health class, or create one if none exist yet.
Метод класса: WP_Site_Health{}
Хуков нет.
Возвращает
WP_Site_Health|null.
Использование
$result = WP_Site_Health::get_instance();
Список изменений
| С версии 5.4.0 | Введена. |
Код WP_Site_Health::get_instance() WP Site Health::get instance WP 7.0
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new WP_Site_Health();
}
return self::$instance;
}