nxs_delPostSettings_ajax

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

Description

nxs_delPostSettings_ajax(); 

Usage

  1. if ( !function_exists( 'nxs_delPostSettings_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 = nxs_delPostSettings_ajax(); 
  7.  

Defined (1)

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

/NextScripts_SNAP.php  
  1. if (!function_exists("nxs_delPostSettings_ajax")) { function nxs_delPostSettings_ajax() { check_ajax_referer('nxsSsPageWPN'); global $nxs_snapAvNts; $pid = (int)$_POST['pid']; 
  2. foreach ($nxs_snapAvNts as $avNt) delete_post_meta($pid, 'snap'.strtoupper($avNt['code'])); delete_post_meta($pid, 'snap_isAutoPosted'); delete_post_meta($pid, 'snap_MYURL'); 
  3. echo "OK"; die(); 
  4. }}