nxs_snapCleanup

The NextScripts: Social Networks Auto-Poster nxs snapCleanup function.

Description

nxs_snapCleanup( $options ); 

Parameters (1)

0. $options
The options.

Usage

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

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nxs_snapCleanup')) { function nxs_snapCleanup($options) { global $nxs_snapAvNts;  
  2. foreach ($nxs_snapAvNts as $avNt) { if (!isset($options[$avNt['lcode']]) || count($options[$avNt['lcode']])>1) { $copt = ''; $t = ''; 
  3. if (isset($options[$avNt['lcode']]) && is_array($options[$avNt['lcode']])) $copt = array_values( $options[$avNt['lcode']] );  
  4. $t = (isset($copt[0]) && is_array($copt[0]) && count($copt[0]>2))?$copt[0]:''; $options[$avNt['lcode']] = array(); if ($t!='') $options[$avNt['lcode']][] = $t; 
  5. }} 
  6. return $options; 
  7. }}