WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin

WCAdminHelper::get_wcadmin_active_for_in_seconds() public WC 1.0

Get the number of seconds that the store has been active.

{} It's a method of the class: WCAdminHelper{}

No Hooks.

Return

number. Number of seconds.

Usage

$result = WCAdminHelper::get_wcadmin_active_for_in_seconds();

Code of WCAdminHelper::get_wcadmin_active_for_in_seconds() WC 6.1.0

public static function get_wcadmin_active_for_in_seconds() {
	$install_timestamp = get_option( self::WC_ADMIN_TIMESTAMP_OPTION );

	if ( false === $install_timestamp ) {
		$install_timestamp = time();
		update_option( self::WC_ADMIN_TIMESTAMP_OPTION, $install_timestamp );
	}

	return time() - $install_timestamp;
}