Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hide address section in MarketPress checkout page
add_filter( 'mp_checkout/sections_array', function( $sections ){
if( isset( $sections['billing-shipping-address'] ) ){
unset( $sections['billing-shipping-address'] );
return $sections;
}, 10 );
add_filter( 'mp_order/get_addresses', function( $html ){
return '';
}, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.