I've build a theme using custom post-types with queries like
$my_custom_post_type_query = new WP_Query( array( 'my_arg' => 'value' ));
Now I'm writing a plugin where I need to do something like
$wp_query->get_queried_object_id();
but for $my_custom_post_type_query instead of $wp_query.
How can I (from my plugin file)
check if there are any custom queries, and if so
call a specific custom query within my plugin?
Any ideas much appreciated!