How to check multiple post types with if condition and hide media button conditionally
You can use PHP in_array() function to check multiple post types using if condition.
You can find proposed solution, in this case, with the following reply:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.