When I am using this code on my plugin page, I’m getting empty array but not the required result.
What’s wrong with this code?
$defaults_arr = array(
'post_type' => 'at-subscription',
'suppress_filters' => true,
'order' => 'ASC',);
//
$query_r = wp_parse_args($args,$defaults_arr);
$get_posts = new WP_Query();
print_r($get_posts->query($query_r));