ID ); $lottery_winers = get_post_meta( $post->ID, ‘_lottery_winners’ ); $lottery_pn_winers = get_post_meta($post->ID, ‘_lottery_pn_winners’,true); $order_hold_on = get_post_meta( $post->ID, ‘_order_hold_on’ ); $use_answers = wc_lottery_use_answers( $post->ID ); $use_ticket_numbers = get_post_meta( $post->ID , ‘_lottery_use_pick_numbers’, true ); $answers = maybe_unserialize( get_post_meta( $post->ID, ‘_lottery_pn_answers’, true ) ); if ( $order_hold_on ) { $orders_links_on_hold = ”; echo ‘

‘; _e( ‘Some on hold orders are preventing this lottery to end. Can you please check it! ‘, ‘wc_lottery’ ); foreach ( array_unique( $order_hold_on ) as $key => $order_hold_on_id ) { $orders_links_on_hold .= “$order_hold_on_id, “; } echo rtrim( $orders_links_on_hold, ‘, ‘ ); echo “

“; echo ”