nxsClnCookies

The NextScripts: Social Networks Auto-Poster nxsClnCookies function.

Description

nxsClnCookies( $ck ); 

Parameters (1)

0. $ck
The ck.

Usage

  1. if ( !function_exists( 'nxsClnCookies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The ck. 
  5. $ck = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxsClnCookies($ck); 
  9.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nxsClnCookies')) { function nxsClnCookies($ck) { $ckOut = array(); $t =time(); foreach ($ck as $c) { if ($c->value!='deleted' && $c->value!='deleteMe' && $c->value!='delete me' && (empty($c->expires) || $c->expires>$t)) $ckOut[] = $c; } return $ckOut; }}