{"id":1167199,"date":"2016-09-21T18:19:15","date_gmt":"2016-09-22T01:19:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/"},"modified":"2016-09-21T18:19:15","modified_gmt":"2016-09-22T01:19:15","slug":"disable-editing-of-event-categories-for-editor-user-role-in-2016","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/","title":{"rendered":"Disable Editing of Event Categories for editor user role in 2016"},"content":{"rendered":"<p>Hello, <\/p>\n<p>I need to disable the ability of my editors to add new categories. I thought that removing the standard wordpress capability of &#8220;manage_categories&#8221; would take care of that, but it doesn&#8217;t seem to interact with the Events post types at all. <\/p>\n<p>I&#8217;ve looked over the documentation at https:\/\/theeventscalendar.com\/knowledgebase\/admin-roles-and-permissions\/#capabilities and it looks like there isn&#8217;t an Events Calendar capability to manage categories at all? I&#8217;ve confirmed this by installing the Members plugin and looking in the options there, to no avail.<\/p>\n<p>Looks like another user of yours in 2013 attempted to solve this: https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories\/ but their code snippet solution isn&#8217;t working for me. I&#8217;ve moved that over to a pastebin for easier inspection here: http:\/\/pastebin.com\/LRda7cVZ<br \/>\nAlso, I&#8217;ve included it here:<\/p>\n<pre><code>\n\nfunction disable_editor_category_editing() {\n\/\/make it so that non-admin users can not edit event categories\n\tregister_taxonomy( &#039;tribe_events_cat&#039;, &#039;tribe_events&#039;, array(\n\t\t&#039;hierarchical&#039; =&gt; true,\n\t\t&#039;rewrite&#039; =&gt; array( &#039;slug&#039;=&gt; &#039;events\/&#039; . sanitize_title( __( &#039;category&#039;, &#039;tribe-events-calendar&#039; ) ), &#039;with_front&#039; =&gt; false ),\n\t\t&#039;public&#039; =&gt; true,\n\t\t&#039;show_ui&#039; =&gt; true,\n\t\t&#039;labels&#039; =&gt; array(\n\t\t&#039;name&#039; =&gt;\t__( &#039;NTD Categories&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;singular_name&#039; =&gt;\t__( &#039;NTD Category&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;search_items&#039; =&gt;\t__( &#039;Search NTD Categories&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;all_items&#039; =&gt; __( &#039;All NTD Categories&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;parent_item&#039; =&gt;\t__( &#039;Parent NTD Category&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;parent_item_colon&#039; =&gt;\t__( &#039;Parent NTD Category:&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;edit_item&#039; =&gt;\t__( &#039;Edit NTD Category&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;update_item&#039; =&gt;\t__( &#039;Update NTD Category&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;add_new_item&#039; =&gt;\t__( &#039;Add New NTD Category&#039;, &#039;tribe-events-calendar&#039; ),\n\t\t&#039;new_item_name&#039; =&gt;\t__( &#039;New NTD Category Name&#039;, &#039;tribe-events-calendar&#039; )\n\t),\n\t&#039;capabilities&#039; =&gt; array(\n\t\t&#039;manage_terms&#039; =&gt; &#039;update_themes&#039;,\n\t\t&#039;edit_terms&#039; =&gt; &#039;update_themes&#039;,\n\t\t&#039;delete_terms&#039; =&gt; &#039;update_themes&#039;,\n\t\t&#039;assign_terms&#039; =&gt; &#039;update_themes&#039;\n\t)\n\t));\n}\nadd_action(&#039;init&#039;, &#039;disable_editor_category_editing&#039;);\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1167199","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Disable Editing of Event Categories for editor user role in 2016 -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable Editing of Event Categories for editor user role in 2016 -\" \/>\n<meta property=\"og:description\" content=\"Hello, I need to disable the ability of my editors to add new categories. I thought that removing the standard wordpress capability of &#8220;manage_categories&#8221; would take care of that, but it doesn&#8217;t seem to interact with the Events post types at all. I&#8217;ve looked over the documentation at https:\/\/theeventscalendar.com\/knowledgebase\/admin-roles-and-permissions\/#capabilities and it looks like there isn&#8217;t [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/\",\"name\":\"Disable Editing of Event Categories for editor user role in 2016 -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-09-22T01:19:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Disable Editing of Event Categories for editor user role in 2016\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable Editing of Event Categories for editor user role in 2016 -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/","og_locale":"en_US","og_type":"article","og_title":"Disable Editing of Event Categories for editor user role in 2016 -","og_description":"Hello, I need to disable the ability of my editors to add new categories. I thought that removing the standard wordpress capability of &#8220;manage_categories&#8221; would take care of that, but it doesn&#8217;t seem to interact with the Events post types at all. I&#8217;ve looked over the documentation at https:\/\/theeventscalendar.com\/knowledgebase\/admin-roles-and-permissions\/#capabilities and it looks like there isn&#8217;t [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/","name":"Disable Editing of Event Categories for editor user role in 2016 -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-09-22T01:19:15+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/disable-editing-of-event-categories-for-editor-user-role-in-2016\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Disable Editing of Event Categories for editor user role in 2016"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1167199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1167199\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1167199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}