So I’m trying to enqueue scripts used for some post formats like video and audio and I could find a way to check what post formats are going to be shown on the page.
I tried print_r on some global variables but they doesn’t seems to have post_format in the post details, I tried $posts and $wp_query and also tried print_r on $GLOBALS.
I also tried adding an action for video and audio post formats but the action runs too late for queuing scripts.
have anyone done something like this before ?
and thanks in advance.