wpsc_all_associated_variations

The WP eCommerce wpsc all associated variations hook.

Description

apply_filters( 'wpsc_all_associated_variations', (unknown) $this_all_associated_variations, (unknown) $this_variation_groups, (unknown) $product_id ); 

Parameters (3)

0. $this_all_associated_variations (unknown)
The this all associated variations.
1. $this_variation_groups (unknown)
The this variation groups.
2. $product_id (unknown)
The product id.

Usage

To run the hook, copy the example below.
  1. $this_all_associated_variations = apply_filters( 'wpsc_all_associated_variations', $this_all_associated_variations, $this_variation_groups, $product_id ); 
  2.  
  3. if ( !empty( $this_all_associated_variations ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wpsc_all_associated_variations callback 
  2. function filter_wpsc_all_associated_variations( $this_all_associated_variations, $this_variation_groups, $product_id ) { 
  3. // make filter magic happen here... 
  4. return $this_all_associated_variations
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wpsc_all_associated_variations', 'filter_wpsc_all_associated_variations', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wpsc_all_associated_variations', 'filter_wpsc_all_associated_variations', 10, 3 ); 

Defined (1)

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

/wpsc-includes/variations.class.php  
  1. $this->all_associated_variations = apply_filters( 'wpsc_all_associated_variations', $this->all_associated_variations, $this->variation_groups, $product_id );