Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created March 27, 2012 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/2216843 to your computer and use it in GitHub Desktop.
Save dancameron/2216843 to your computer and use it in GitHub Desktop.
GBS: Filter Checkout Registration Panes
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