WordPress at a glance
class is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

WCAdminActiveForProvider{} WC 1.0

WCAdminActiveForProvider class

No Hooks.

Return

null. Nothing.

Usage

$WCAdminActiveForProvider = new WCAdminActiveForProvider();
// use class methods

Methods

  1. get_wcadmin_active_for_in_seconds()

Code of WCAdminActiveForProvider{} WC 5.3.0

<?php
class WCAdminActiveForProvider {
	/**
	 * Get the number of seconds that the store has been active.
	 *
	 * @return number Number of seconds.
	 */
	public function get_wcadmin_active_for_in_seconds() {
		$install_timestamp = get_option( 'woocommerce_admin_install_timestamp' );

		return time() - $install_timestamp;
	}
}