_wpsc_action_transition_post_status

Make sure parent product's assigned terms are refresh when its variations' statuses are changed.

Description

_wpsc_action_transition_post_status( (string) $new_status, (string) $old_status, (object) $post ); 

Parameters (3)

0. $new_status (string)
The new status.
1. $old_status (string)
The old status.
2. $post (object)
Variation object

Usage

  1. if ( !function_exists( '_wpsc_action_transition_post_status' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/includes/product-functions.php'; 
  3.  
  4. // The new status. 
  5. $new_status = ''; 
  6.  
  7. // The old status. 
  8. $old_status = ''; 
  9.  
  10. // Variation object 
  11. $post = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = _wpsc_action_transition_post_status($new_status, $old_status, $post); 
  15.  

Defined (1)

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

/wpsc-admin/includes/product-functions.php