Automattic\WooCommerce\Admin\RemoteInboxNotifications
RemoteInboxNotificationsDataSourcePoller::get_instance
Get class instance.
Метод класса: RemoteInboxNotificationsDataSourcePoller{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = RemoteInboxNotificationsDataSourcePoller::get_instance();
Код RemoteInboxNotificationsDataSourcePoller::get_instance() RemoteInboxNotificationsDataSourcePoller::get instance WC 10.6.2
public static function get_instance() {
if ( ! self::$instance ) {
self::$instance = new self(
self::ID,
self::get_data_sources(),
array(
'spec_key' => 'slug',
)
);
}
return self::$instance;
}