Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Remove My Account menu items
- add_filter ( 'woocommerce_account_menu_items', 'remove_my_account_items' );
- function remove_my_account_items( $menu_links ) {
- // unset( $menu_links['dashboard'] );
- // unset( $menu_links['orders'] );
- unset( $menu_links['downloads'] );
- // unset( $menu_links['edit-address'] );
- unset( $menu_links['payment-methods'] );
- // unset( $menu_links['edit-account'] );
- // unset( $menu_links['customer-logout'] );
- return $menu_links;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement