monsterinsights_get_cookie_expiration_date

The Google Analytics for WordPress by MonsterInsights monsterinsights get cookie expiration date function.

Description

monsterinsights_get_cookie_expiration_date( $time ); 

Parameters (1)

0. $time
The time.

Usage

  1. if ( !function_exists( 'monsterinsights_get_cookie_expiration_date' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/helpers.php'; 
  3.  
  4. // The time. 
  5. $time = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_get_cookie_expiration_date($time); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/helpers.php  
  1. function monsterinsights_get_cookie_expiration_date( $time ) { 
  2. return date('D, j F Y H:i:s', time() + $time );