Title: Extension: Hide Additional Fields &#8211; Warning: in_array()
Last modified: June 26, 2020

---

# Extension: Hide Additional Fields – Warning: in_array()

 *  Resolved [stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * (@stzlichtenbrg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/)
 * Hi,
    we are using Events Calendar with Avada theme. I configured 2 additional
   fields (contact details for submitted community events) which should be hidden
   on the single events page. Therefore the Events Calendar PRO Extension: Hide 
   Additional Fields Version 1.0.0 is installed. The fields are hidden, but I get
   the following error: `Warning: in_array() expects parameter 2 to be array, bool
   given in /www/htdocs/w0129062/website.com/wp-content/plugins/tribe-ext-hide-additional-
   fields/src/views/community-field-options.php on line 28` name=”custom-hidden[]”
   > Phone number Error is also visible in the backend as logged in user. What do
   I have to change at the current extension or how can I achieve, that these additional
   fields are not displayed at the single events page without using the extension?
 * Thanks for your help!
    Regards
    -  This topic was modified 5 years, 11 months ago by [stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fextension-hide-additional-fields-warning-in_array%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [alaasalama](https://wordpress.org/support/users/alaasalama/)
 * (@alaasalama)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13103180)
 * Hi [@stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * It might be that the extension needs to be maintained to work with the recent
   version of The Events Calendar, since we are limited in resources and we don’t
   officially support extensions, I would suggest an alternative way for now, did
   you try simply hiding these fields you don’t want with CSS? If you need help 
   with that, just let me know which fields exactly you want to get rid of, so I
   can help you with the CSS snippet.
 * Thanks.
 *  Thread Starter [stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * (@stzlichtenbrg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13201085)
 * Hi alaasalama,
    sorry for my delayed reply and thanks a lot for your suggestion.
   This is exactly what I did but as the additional fields contain contact data 
   of the event organizer, I would prefer to hide these sensitive information and
   not only to make it invisible as it is still displayed in the source code. Any
   hints how I can achieve this would be very appreciated.
 * Best regards
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13218063)
 * Hi [@stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * If you don’t want to use CSS here, you’ll want to create a template override 
   and hide the data that way.
 * You can read more about template overrides here:
    [https://theeventscalendar.com/knowledgebase/k/customizing-template-files/](https://theeventscalendar.com/knowledgebase/k/customizing-template-files/)
   [https://theeventscalendar.com/knowledgebase/k/custom-templates-for-the-updated-calendar-views/](https://theeventscalendar.com/knowledgebase/k/custom-templates-for-the-updated-calendar-views/)
 * I hope that helps!
 * Thanks,
    Jaime
 *  Thread Starter [stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * (@stzlichtenbrg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13238874)
 * Hi Jaime
    Thanks you very much for the links. This seems to bee more complicated
   than just hiding the fields via CSS but is more what I want to achieve. Will 
   test this when I have some time.
 * Thanks
    stzlichtenbrg
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13245507)
 * Hi [@stzlichtenbrg](https://wordpress.org/support/users/stzlichtenbrg/)
 * Okay, sounds good. Let us know how that goes and if you need any further assistance
   here.
 * Have a great day!
 * Thanks,
    Jaime

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Extension: Hide Additional Fields – Warning: in_array()’ is closed to
new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [Additional Fields](https://wordpress.org/support/topic-tag/additional-fields/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/extension-hide-additional-fields-warning-in_array/#post-13245507)
 * Status: resolved