_wpsc_action_refresh_variation_parent_terms

Make sure parent product's assigned terms are refreshed when its variations are deleted or trashed.

Description

_wpsc_action_refresh_variation_parent_terms( (int) $post_id ); 

Parameters (1)

0. $post_id (int)
Parent product ID

Usage

  1. if ( !function_exists( '_wpsc_action_refresh_variation_parent_terms' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/includes/product-functions.php'; 
  3.  
  4. // Parent product ID 
  5. $post_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _wpsc_action_refresh_variation_parent_terms($post_id); 
  9.  

Defined (1)

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

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