nxs_rePostToDL_ajax

The NextScripts: Social Networks Auto-Poster nxs rePostToDL ajax function.

Description

nxs_rePostToDL_ajax(); 

Usage

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

Defined (1)

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

/inc-cl/dl.php  
  1. function nxs_rePostToDL_ajax() { check_ajax_referer('nxsSsPageWPN'); $postID = $_POST['id']; $options = get_option('NS_SNAutoPoster');  
  2. foreach ($options['dl'] as $ii=>$two) if ($ii==$_POST['nid']) { $two['ii'] = $ii; $two['pType'] = 'aj'; //if ($two['gpPageID'].$two['gpUName']==$_POST['nid']) {  
  3. $gppo = get_post_meta($postID, 'snapDL', true); $gppo = maybe_unserialize($gppo);// prr($gppo); 
  4. if (is_array($gppo) && isset($gppo[$ii]) && is_array($gppo[$ii])) { $ntClInst = new nxs_snapClassDL(); $two = $ntClInst->adjMetaOpt($two, $gppo[$ii]);} 
  5. $result = nxs_doPublishToDL($postID, $two); if ($result == 200) die("Successfully sent your post to Delicious."); else die($result);  
  6. }