ステータスがwc-pending/Pending Paymentの注文オブジェクトを取得できません。これは単に、すべての注文オブジェクトを返します。ステータスが保留状態のWP_QueryおよびWooCommerceの注文
$my_course_query = new WP_Query(array(
'post_type' => 'shop_order',
'post_status' => 'wc-pending',
'posts_per_page' => -1
));