Created
March 27, 2012 15:18
-
-
Save dancameron/2216843 to your computer and use it in GitHub Desktop.
GBS: Filter Checkout Registration Panes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('init','filter_gb_controllers', 500); | |
function filter_gb_controllers() { | |
remove_all_filters('gb_checkout_account_registration_panes'); | |
add_filter('gb_checkout_account_registration_panes','remove_contact_info_pane'); | |
} | |
function remove_contact_info_pane( $panes ) { | |
//Make it a minimal registration since the checkout process will save the billing info. | |
unset($panes['contact_info']); | |
return $panes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment