Created
July 13, 2017 10:46
-
-
Save panoslyrakis/c072285e6e75407e1e5b9b82f50e0241 to your computer and use it in GitHub Desktop.
Hide address section in MarketPress checkout page
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
<?php | |
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