{"id":1338142,"date":"2017-08-21T08:51:19","date_gmt":"2017-08-21T15:51:19","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/"},"modified":"2017-08-21T08:51:19","modified_gmt":"2017-08-21T15:51:19","slug":"remove-tribetickets-metabox-from-admin-not-working","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/","title":{"rendered":"Remove tribetickets metabox from admin not working"},"content":{"rendered":"<p>Hi I have created a custom user for my site and I would like to give it restricted access to certain areas and everything seems to work fine, but some of your metaboxes are not respecting my code, do you have any idea why they are not working like WordPress has intended them to work?<\/p>\n<p>Here is a snippet of my code with a comment behind hem if they work or not <\/p>\n<pre><code>remove_meta_box( &#039;tribe_events_event_details&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Works\nremove_meta_box( &#039;tribetickets&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Not working<\/code><\/pre>\n<p>Removing the meta box tribe_events_event_details works fine, but removing the meta box tribetickets doesn&#8217;t work. Has the Event ticket (plus) plugin an other way to add the metaboxes to the page and if so why is that?<\/p>\n<p>Here is the full code block with some lines working and some are not <\/p>\n<pre><code>function coordinator_remove_meta_boxes() {\n\tif ( current_user_can( &#039;coordinator&#039; ) ) {\n\t\tremove_meta_box( &#039;tagsdiv-post_tag&#039;, &#039;tribe_events&#039;, &#039;side&#039; ); \/\/ Works\n\t\tremove_meta_box( &#039;postexcerpt&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Works\n\t\tremove_meta_box( &#039;authordiv&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Works\n\t\tremove_meta_box( &#039;tribe_events_event_details&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Works\n\t\tremove_meta_box( &#039;tribetickets&#039;, &#039;tribe_events&#039;, &#039;normal&#039; ); \/\/ Not working\n\t\tremove_meta_box( &#039;tribe_events_event_options&#039;, &#039;tribe_events&#039;, &#039;side&#039; ); \/\/ Works\n\t\tremove_meta_box( &#039;tribe_events_catdiv&#039;, &#039;tribe_events&#039;, &#039;side&#039; ); \/\/ Works\n\t}\n}\nadd_action( &#039;admin_menu&#039;, &#039;coordinator_remove_meta_boxes&#039; );<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1338142","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>Remove tribetickets metabox from admin not working -<\/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\/remove-tribetickets-metabox-from-admin-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remove tribetickets metabox from admin not working -\" \/>\n<meta property=\"og:description\" content=\"Hi I have created a custom user for my site and I would like to give it restricted access to certain areas and everything seems to work fine, but some of your metaboxes are not respecting my code, do you have any idea why they are not working like WordPress has intended them to work? [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/\" \/>\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\/remove-tribetickets-metabox-from-admin-not-working\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/\",\"name\":\"Remove tribetickets metabox from admin not working -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-08-21T15:51:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/#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\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Remove tribetickets metabox from admin not working\"}]},{\"@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":"Remove tribetickets metabox from admin not working -","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\/remove-tribetickets-metabox-from-admin-not-working\/","og_locale":"en_US","og_type":"article","og_title":"Remove tribetickets metabox from admin not working -","og_description":"Hi I have created a custom user for my site and I would like to give it restricted access to certain areas and everything seems to work fine, but some of your metaboxes are not respecting my code, do you have any idea why they are not working like WordPress has intended them to work? [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/","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\/remove-tribetickets-metabox-from-admin-not-working\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/","name":"Remove tribetickets metabox from admin not working -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-08-21T15:51:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-tribetickets-metabox-from-admin-not-working\/#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":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Remove tribetickets metabox from admin not working"}]},{"@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\/1338142","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\/1338142\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1338142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}