wpsc_australia_post_methods

The WP eCommerce wpsc australia post methods hook.

Description

apply_filters( 'wpsc_australia_post_methods', (unknown) $methods, (unknown) $this_base_zipcode, (unknown) $destzipcode, (unknown) $dest, (unknown) $weight ); 

Parameters (5)

0. $methods (unknown)
The methods.
1. $this_base_zipcode (unknown)
The this base zipcode.
2. $destzipcode (unknown)
The destzipcode.
3. $dest (unknown)
The dest.
4. $weight (unknown)
The weight.

Usage

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

Defined (1)

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

/wpsc-shipping/australiapost.php  
  1. $methods = apply_filters('wpsc_australia_post_methods', $methods, $this->base_zipcode, $destzipcode, $dest, $weight);