Enqueueing scripts and styles multiple CPTS
There is a built-in function that you can use, instead of globals. The get_current_screen() function allows you to get the information associated with the current page. One of its return values is post_type. So you can check against an array of post types to see if anyone matches. function fhaac_admin_enqueue_scripts(){ $screen = get_current_screen(); if ( … Read more