{"id":11804530,"date":"2019-08-06T12:35:30","date_gmt":"2019-08-06T12:35:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/remove-submenu-from-admin-dashboard\/"},"modified":"2019-08-07T02:19:19","modified_gmt":"2019-08-07T02:19:19","slug":"remove-submenu-from-admin-dashboard","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/remove-submenu-from-admin-dashboard\/","title":{"rendered":"Remove Submenu from Admin Dashboard"},"content":{"rendered":"<p>I have a site that I want a specific user role to have edit access to woocommerce orders but not to ADD ORDER and woocommerce memberships that have edit access but do not want them to be able ADD MEMBER. Their dashboard shows a pinned &#8216;Orders&#8217; menu item in the sidebar menu and when expanded the submenu items are &#8216;Orders&#8217; and &#8216;Add Order&#8217;. Same with the Memberships. How can I remove, disable or hide the &#8216;Add..&#8217; items from the dashboard?<br \/>\nI don&#8217;t know how to write code and found one thing online that will remove the &#8216;Add Order&#8217; button in the page context but cannot find anything for the dashboard sidebar. Please help.<\/p>\n","protected":false},"template":"","class_list":["post-11804530","topic","type-topic","status-publish","hentry","topic-tag-dashboard","topic-tag-submenu"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11804530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11804530\/revisions"}],"predecessor-version":[{"id":11806955,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11804530\/revisions\/11806955"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11804530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}