A better way of getting draft posts that has a particular post meta using get_posts function
You can use the post meta arguments that get_posts function already supports. So, there is no need to use get_post_meta function in a PHP loop. For your use case, post meta related arguments can be used in one of the two possible ways: Either using meta_key, meta_value, meta_compare arguments; Or, using the meta_query argument which … Read more