nxs_rePostToFL_ajax

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

Description

nxs_rePostToFL_ajax(); 

Usage

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

Defined (1)

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

/inc-cl/fl.php  
  1. function nxs_rePostToFL_ajax() { check_ajax_referer('nxsSsPageWPN'); $postID = $_POST['id']; global $plgn_NS_SNAutoPoster; if (!isset($plgn_NS_SNAutoPoster)) return; $options = $plgn_NS_SNAutoPoster->nxs_options; 
  2. foreach ($options['fl'] as $ii=>$two) if ($ii==$_POST['nid']) { $two['ii'] = $ii; $two['pType'] = 'aj'; //if ($two['apPageID'].$two['apUName']==$_POST['nid']) { 
  3. $appo = get_post_meta($postID, 'snapFL', true); $appo = maybe_unserialize($appo);// prr($appo); 
  4. if (is_array($appo) && isset($appo[$ii]) && is_array($appo[$ii])) { $ntClInst = new nxs_snapClassFL(); $two = $ntClInst->adjMetaOpt($two, $appo[$ii]); } 
  5. $result = nxs_doPublishToFL($postID, $two); if ($result == 200) die("Successfully sent your post to Flickr. "); else die($result);