nxs_save_glbNtwrks

The NextScripts: Social Networks Auto-Poster nxs save glbNtwrks function.

Description

nxs_save_glbNtwrks( $nt, $ii, $ntOptsOrVal, (string) $field = '', (string) $networks = '' ); 

Parameters (5)

0. $nt
The nt.
1. $ii
The ii.
2. $ntoptsorval
The ntoptsorval.
3. $field — Optional. (string) => ''
The field.
4. $networks — Optional. (string) => ''
The networks.

Usage

  1. if ( !function_exists( 'nxs_save_glbNtwrks' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc/nxs_functions_adv.php'; 
  3.  
  4. // The nt. 
  5. $nt = null; 
  6.  
  7. // The ii. 
  8. $ii = null; 
  9.  
  10. // The ntoptsorval. 
  11. $ntoptsorval = null; 
  12.  
  13. // The field. 
  14. $field = ''; 
  15.  
  16. // The networks. 
  17. $networks = ''; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = nxs_save_glbNtwrks($nt, $ii, $ntoptsorval, $field, $networks); 
  21.  

Defined (1)

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

/inc/nxs_functions_adv.php  
  1. if (!function_exists("nxs_save_glbNtwrks")) { function nxs_save_glbNtwrks($nt, $ii, $ntOptsOrVal, $field='', $networks='') { if (empty($networks)) { if ($field=='*') {$field=''; $merge = true;} else $merge = false; 
  2. if (class_exists('NS_SNAutoPoster')) { global $plgn_NS_SNAutoPoster; if (!isset($plgn_NS_SNAutoPoster)) $plgn_NS_SNAutoPoster = new nxs_SNAP(); $networks = $plgn_NS_SNAutoPoster->nxs_options; }  
  3. elseif (function_exists("nxs_settings_open")) $networks = nxs_settings_open(); 
  4. } if(!empty($field)) $networks[$nt][$ii][$field] = $ntOptsOrVal; else $networks[$nt][$ii] = $merge?(array_merge($networks[$nt][$ii], $ntOptsOrVal)):$ntOptsOrVal; nxs_save_ntwrksOpts($networks);  
  5. if (isset($plgn_NS_SNAutoPoster)) $plgn_NS_SNAutoPoster->nxs_options = $networks;// prr($networks[$nt]); var_dump($merge); 
  6. }}