Is there any strategy to verify if submit has any hooked up medias by way of new WP_Query($args)?
$args = [
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 10,
'paged' => 1,
*****************************************
→ [args for checking attached medias] ←
*****************************************
];
$posts = new WP_Query($args);
I need to retrieve posts which have media attachments…