{"id":54699,"date":"2018-05-25T14:39:35","date_gmt":"2018-05-25T17:39:35","guid":{"rendered":"https:\/\/samuelchopard.ch\/wiki\/?p=54699"},"modified":"2019-03-18T14:29:17","modified_gmt":"2019-03-18T13:29:17","slug":"customising-the-woocommerce-my-account-navigation","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/customising-the-woocommerce-my-account-navigation\/","title":{"rendered":"Customising the WooCommerce &#8220;My Account&#8221; navigation"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Paste the following in <strong><em>functions.php<\/em><\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\">function my_account_menu_order() {\n    $menuOrder = array(\n        'orders'             =&gt; __( 'Your Orders', 'woocommerce' ),\n        'downloads'          =&gt; __( 'Download', 'woocommerce' ),\n        'edit-address'       =&gt; __( 'Addresses', 'woocommerce' ),\n        'edit-account'        =&gt; __( 'Account Details', 'woocommerce' ),\n        'customer-logout'    =&gt; __( 'Logout', 'woocommerce' ),\n        'dashboard'          =&gt; __( 'Dashboard', 'woocommerce' )\n    );\n    return $menuOrder;\n}\nadd_filter ( 'woocommerce_account_menu_items', 'my_account_menu_order' );\n<\/pre>\n<ul>\n<li>Change order as desired.<\/li>\n<li>Any deleted line will not show up in the dashboard.<\/li>\n<\/ul>\n<p>Source:\u00a0<a target=\"_blank\" href=\"https:\/\/www.atomicsmash.co.uk\/blog\/customising-the-woocommerce-my-account-section\/\">https:\/\/www.atomicsmash.co.uk\/blog\/customising-the-woocommerce-my-account-section\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Paste the following in functions.php: function my_account_menu_order() { $menuOrder = array( 'orders' =&gt; __( 'Your Orders', 'woocommerce' ), 'downloads' =&gt; [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[151,189,191],"class_list":["post-54699","post","type-post","status-publish","format-standard","hentry","category-woocommerce","tag-labels","tag-my-account","tag-navigations"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=54699"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54699\/revisions"}],"predecessor-version":[{"id":54845,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54699\/revisions\/54845"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}