{"id":1963558,"date":"2024-12-02T08:19:30","date_gmt":"2024-12-02T13:19:30","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1963558"},"modified":"2025-08-17T18:56:36","modified_gmt":"2025-08-17T22:56:36","slug":"remove-community-events-submission-form-fields","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/remove-community-events-submission-form-fields\/","title":{"rendered":"Remove Community Events Submission Form Fields"},"content":{"rendered":"\n<p>The <a href=\"https:\/\/theeventscalendar.com\/products\/community\/\" target=\"_blank\" rel=\"noreferrer noopener\">Community<\/a> plugin for <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a> enables you to create a user-friendly <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/guide\/community-events\/\" target=\"_blank\" rel=\"noreferrer noopener\">event submission form<\/a> on your website. This form includes various fields, including the event title, description, date &amp; time, image, categories, tags, and more. This flexibility allows users to provide detailed information about their events. However, not all fields may be necessary for every situation.<\/p>\n\n\n\n<p>This article outlines how to customize the submission form by removing unnecessary fields using straightforward code snippets. Whether you aim to enhance user experience or tailor the form to meet specific needs, these snippets will provide the necessary tools.<\/p>\n\n\n\n<p class=\"has-theme-palette-8-background-color has-background\">While it is possible to add PHP code snippets similar to those provided in this article directly to the functions.php file, using a third-party plugin like <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\">Code Snippets<\/a> is recommended.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-removing-fields-via-form-layout-filter-hook\">Removing Fields via Form Layout Filter Hook<\/h2>\n\n\n\n<p>The <code>tec_events_community_form_layout<\/code> filter hook is a powerful tool that controls the layout and available fields in the submission form. Using this filter hook, you can customize the form to suit your specific needs.<\/p>\n\n\n\n<p>The following code allows you to easily modify the list of fields to remove by editing the <code>$fields_to_remove<\/code> array.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tec_events_community_form_layout&#039;, function ( $fields ) {\n\n\t\/\/ Define the fields\/modules you want to remove\n\t$fields_to_remove = &#x5B;\n\t\t&#039;image&#039;,                    \/\/ Event Image\n\t\t&#039;event-taxonomy_event&#039;,     \/\/ Event Categories\n\t\t&#039;event-taxonomy_tag&#039;,       \/\/ Event Tags\n\t\t&#039;event-cost&#039;,               \/\/ Event Cost\n\t\t&#039;terms&#039;,                    \/\/ Terms and Conditions\n\t];\n\n\t\/\/ Remove the specified fields\/modules\n\treturn array_diff_key( $fields, array_flip( $fields_to_remove ) );\n\n}, 20 );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-list-of-events-submission-form-fields\">List of Events Submission Form Fields<\/h3>\n\n\n\n<p>Below is a list of fields available in the Community events submission form that you can control with the <code>tec_events_community_form_layout<\/code> filter hook:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Field Key<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>title<\/code><\/td><td>Event Title<\/td><\/tr><tr><td><code>description<\/code><\/td><td>Event Description<\/td><\/tr><tr><td><code>event-datepickers<\/code><\/td><td>Event Date &amp; Time Pickers<\/td><\/tr><tr><td><code>image<\/code><\/td><td>Event Image<\/td><\/tr><tr><td><code>event-taxonomy_event<\/code><\/td><td>Event Categories<\/td><\/tr><tr><td><code>event-taxonomy_tag<\/code><\/td><td>Event Tags<\/td><\/tr><tr><td><code>event-venue<\/code><\/td><td>Event Venue<\/td><\/tr><tr><td><code>event-organizer<\/code><\/td><td>Event Organizer<\/td><\/tr><tr><td><code>event-website<\/code><\/td><td>Event Website URL<\/td><\/tr><tr><td><code>event-series<\/code><\/td><td>Event Series<\/td><\/tr><tr><td><code>event-custom<\/code><\/td><td>Custom Fields<\/td><\/tr><tr><td><code>event-cost<\/code><\/td><td>Event Cost<\/td><\/tr><tr><td><code>spam-control<\/code><\/td><td>Spam Control (reCAPTCHA or similar)<\/td><\/tr><tr><td><code>terms<\/code><\/td><td>Terms and Conditions Acceptance<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-removing-event-status-field\">Removing Event Status Field<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/adding-a-custom-event-status\/\" target=\"_blank\" rel=\"noreferrer noopener\">Event Status<\/a> field allows users to set the status of an event (e.g., Postponed or Moved Online). To remove this field from the submission form, use the following code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tribe_community_events_event_status_enabled&#039;, &#039;__return_false&#039; );\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-removing-virtual-event-field\">Removing Virtual Event Field<\/h2>\n\n\n\n<p>If you do not want users to leverage the <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/creating-online-events\/\" target=\"_blank\" rel=\"noreferrer noopener\">virtual events<\/a> functionality, you can disable this field with the following code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( &#039;tribe_community_events_virtual_events_integration_enabled&#039;, &#039;__return_false&#039; );\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-for-developers\">For Developers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>tec_events_community_form_layout<\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_community_events_event_status_enabled\/\">tribe_community_events_event_status_enabled<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_community_events_virtual_events_integration_enabled\/\">tribe_community_events_virtual_events_integration_enabled<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Community plugin for The Events Calendar enables you to create a user-friendly event submission form on your website. This form includes various fields, including the event title, description, date &amp; time, image, categories, tags, and more. This flexibility allows users to provide detailed information about their events. However, not all fields may be necessary&#8230;<\/p>\n","protected":false},"author":59,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[24,59,79],"tags":[20,25,58],"stellar-product-taxonomy":[152],"class_list":["post-1963558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-customizing-resources","category-snippets","tag-code","tag-customizations","tag-php","stellar-product-taxonomy-community-events"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":59,"label":"PHP &amp; Functions"},{"value":79,"label":"Snippets"}],"post_tag":[{"value":20,"label":"Code"},{"value":25,"label":"Customizations"},{"value":58,"label":"PHP"}],"stellar-product-taxonomy":[{"value":152,"label":"Community"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Masood","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/masood\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP &amp; Functions","slug":"customizing-resources","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":101,"filter":"raw","term_order":"0","cat_ID":59,"category_count":101,"category_description":"","cat_name":"PHP &amp; Functions","category_nicename":"customizing-resources","category_parent":24},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0}],"tag_info":[{"term_id":20,"name":"Code","slug":"code","term_group":0,"term_taxonomy_id":20,"taxonomy":"post_tag","description":"","parent":0,"count":33,"filter":"raw","term_order":"0"},{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":128,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1963558"}],"version-history":[{"count":3,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963558\/revisions"}],"predecessor-version":[{"id":1966493,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963558\/revisions\/1966493"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1963558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1963558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1963558"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1963558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}