woocommerce_shipping_chosen_method hook

This commit is contained in:
Mike Jolley 2012-05-22 09:30:14 +01:00
parent 1ee9e2388d
commit 5c4799e64b
2 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class WC_Shipping {
// If not set, set a default
if ( empty( $chosen_method ) || ! isset( $_available_methods[$chosen_method] ) ) {
$chosen_method = get_option('woocommerce_default_shipping_method');
$chosen_method = apply_filters( 'woocommerce_shipping_chosen_method', get_option('woocommerce_default_shipping_method'), $_available_methods );
// Loops methods and find a match
if ( ! isset( $_available_methods[$chosen_method] ) ) {

View File

@ -149,6 +149,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
==
* Tweak - woocommerce_shipping_chosen_method hook
* Tweak - Layered nav child taxonomies support
* Tweak - Change debug page to status page to make it more noticeable.
* Tweak - Broken up settings pages to ease development