ns_delNT_ajax

The NextScripts: Social Networks Auto-Poster ns delNT ajax function.

Description

ns_delNT_ajax(); 

Usage

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

Defined (1)

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

/NextScripts_SNAP.php  
  1. if (!function_exists("ns_delNT_ajax")) { function ns_delNT_ajax() { check_ajax_referer('nxsSsPageWPN'); $indx = (int)$_POST['id'];  
  2. global $plgn_NS_SNAutoPoster; if (!isset($plgn_NS_SNAutoPoster)) return; $options = $plgn_NS_SNAutoPoster->nxs_options;  
  3. unset($options[$_POST['nt']][$indx]); if (is_array($options)) { update_option('NS_SNAutoPoster', $options); $plgn_NS_SNAutoPoster->nxs_options = $options; } 
  4. }}