Created
March 5, 2022 06:13
-
-
Save jhimross/7b7b3c901d523b494c0a1dd22810ff13 to your computer and use it in GitHub Desktop.
Change My Account Tab Order
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
function iconic_woo_my_account_order() { | |
$myorder = array( | |
'dashboard' => __( 'Account', 'woocommerce' ), | |
'edit-account' => __( 'Personal Info', 'woocommerce' ), | |
'orders' => __( 'Orders', 'woocommerce' ), | |
'subscriptions' => __( 'Subscriptions', 'woocommerce' ), | |
'edit-address' => __( 'Address', 'woocommerce' ), | |
'payment-methods' => __( 'Payment Methods', 'woocommerce' ), | |
); | |
return $myorder; | |
} | |
add_filter ( 'woocommerce_account_menu_items', 'iconic_woo_my_account_order' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment