{"id":119,"date":"2025-02-06T12:40:03","date_gmt":"2025-02-06T12:40:03","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/how-to-remove-notifications-and-privacy-from-account-options\/"},"modified":"2025-03-27T16:38:49","modified_gmt":"2025-03-27T16:38:49","slug":"how-to-remove-notifications-and-privacy-from-account-options","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/code-snippets\/how-to-remove-notifications-and-privacy-from-account-options\/","title":{"rendered":"How to Remove &#8220;Notifications and Privacy&#8221; from Account Options?"},"content":{"rendered":"\n<p>You can remove options such as <strong>Notifications and Privacy <\/strong>from the Account Options section of UsersWP.&nbsp;<\/p>\n\n\n\n<p>To accomplish this, use the following code snippet:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter(&#039;uwp_account_available_tabs&#039;, &#039;uwp_account_available_tabs_cb&#039;); \n\tfunction uwp_account_available_tabs_cb($tabs){    \n\t\tunset($tabs[&#039;notifications&#039;]);    \n\t\tunset($tabs[&#039;privacy&#039;]);    \n\t\treturn $tabs; \n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">We recommend using the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\" target=\"_blank\">Code Snippets<\/a> plugin to add snippets to your site.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can remove options such as Notifications and Privacy from the Account Options section of UsersWP.&nbsp; To accomplish this, use the following code snippet:\u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[178,179],"article\/categories":[40,7],"class_list":["post-119","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-account-options","gd_place_tags-notifications-and-privacy","gd_placecategory-code-snippets","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=119"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}