Title: Warning: in_array() expects parameter 2 to be array, boolean given
Last modified: April 12, 2019

---

# Warning: in_array() expects parameter 2 to be array, boolean given

 *  Resolved [nohelmadrid](https://wordpress.org/support/users/nohelmadrid/)
 * (@nohelmadrid)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-boolean-given-3/)
 * Hi there, Im getting this warning on my WordPress dashboard every time I access
   to any post. I’m using wp-gallery-metabox only in one custom post type, but getting
   this warning in all post.
 * _Warning: in\_array() expects parameter 2 to be array, boolean given in …/wp-
   gallery-metabox/admin/class-wp-gallery-metabox-admin.php on line 67_
 * Any help?

The topic ‘Warning: in_array() expects parameter 2 to be array, boolean given’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gallery-metabox_9c8915.svg)
 * [WP Gallery Metabox](https://wordpress.org/plugins/wp-gallery-metabox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gallery-metabox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gallery-metabox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gallery-metabox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gallery-metabox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gallery-metabox/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [nohelmadrid](https://wordpress.org/support/users/nohelmadrid/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-boolean-given-3/)
 * Status: resolved