nxs_snapLogPublishTo

The NextScripts: Social Networks Auto-Poster nxs snapLogPublishTo function.

Description

nxs_snapLogPublishTo( $new_status, $old_status, $post ); 

Parameters (3)

0. $new_status
The new status.
1. $old_status
The old status.
2. $post
The post.

Usage

  1. if ( !function_exists( 'nxs_snapLogPublishTo' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/NextScripts_SNAP.php'; 
  3.  
  4. // The new status. 
  5. $new_status = null; 
  6.  
  7. // The old status. 
  8. $old_status = null; 
  9.  
  10. // The post. 
  11. $post = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = nxs_snapLogPublishTo($new_status, $old_status, $post); 
  15.  

Defined (1)

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

/NextScripts_SNAP.php  
  1. if (!function_exists("nxs_snapLogPublishTo")) { function nxs_snapLogPublishTo( $new_status, $old_status, $post ) { clean_post_cache( $post->ID ); 
  2. if ( $old_status!='publish' && $old_status!='trash' && $new_status == 'publish' ) { nxs_addToLogN('BG', "*** ID: {$post->ID}, Type: {$post->post_type}", '', ' Status Changed: '."{$old_status}_to_{$new_status}".'. Autopost requested.');  
  3. }}