Skip to content

Instantly share code, notes, and snippets.

@NickGreen
Last active May 16, 2018 19:52
Show Gist options
  • Save NickGreen/bd8d3121e3ec2bb5f5fe823a4541bb40 to your computer and use it in GitHub Desktop.
Save NickGreen/bd8d3121e3ec2bb5f5fe823a4541bb40 to your computer and use it in GitHub Desktop.
Hide the "Payment Methods" tab from the WooCommerce My Account page
<?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