I've multiple header files (header-name.php), they are mainly being used by different custom post types. Is there any way to enqueue script to only a specific header?
At this moment I'm targeting it with conditional tag like if ( 'MYPOSTTYPE' == get_post_type() )
but I'm looking for a better alternative.
do we have something like is_header('name')
?