Last active
May 16, 2018 19:52
-
-
Save NickGreen/bd8d3121e3ec2bb5f5fe823a4541bb40 to your computer and use it in GitHub Desktop.
Hide the "Payment Methods" tab from the WooCommerce My Account 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( 'woocommerce_account_menu_items', 'remove_payment_methods_tab_my_account', 999 ); | |
function remove_payment_methods_tab_my_account( $items ) { | |
unset($items['payment-methods']); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment