nxs_rePostToST_ajax

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

Description

nxs_rePostToST_ajax(); 

Usage

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

Defined (1)

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

/inc-cl/st.php  
  1. function nxs_rePostToST_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['st'] 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, 'snapST', true); $appo = maybe_unserialize($appo);// prr($appo); 
  4. if (is_array($appo) && isset($appo[$ii]) && is_array($appo[$ii])) { $ntClInst = new nxs_snapClassST(); $two = $ntClInst->adjMetaOpt($two, $appo[$ii]); }  
  5. $result = nxs_doPublishToST($postID, $two); if ($result == 200) die("Successfully sent your post to SETT. "); else die($result);  
  6. }