%s

', esc_html( apply_filters( 'learn-press/order/received-invalid-order-message', __( 'Invalid order.', 'learnpress' ) ) ) ); return; } echo wp_sprintf( '

%s

', esc_html( apply_filters( 'learn-press/order/received-order-message', __( 'Thank you. Your order has been received.', 'learnpress' ) ) ) ); ?> get_payment_method_title(); if ( $method_title ) : ?>
get_order_number() ); ?>
get_items(); $count = count( $items ); foreach ( $items as $item ) { if ( empty( $item['course_id'] ) || get_post_type( $item['course_id'] ) !== LP_COURSE_CPT ) { $links[] = apply_filters( 'learn-press/order-item-not-course-id', __( 'The course does not exist', 'learnpress' ), $item ); } else { $link = '' . get_the_title( $item['course_id'] ) . ' (#' . $item['course_id'] . ')' . ''; if ( $count > 1 ) { $link = sprintf( '
  • %s
  • ', $link ); } $links[] = apply_filters( 'learn-press/order-received-item-link', $link, $item ); } } if ( $count > 1 ) { echo sprintf( '
      %s
    ', join( '', $links ) ); } elseif ( 1 == $count ) { echo wp_kses_post( implode( '', $links ) ); } else { echo esc_html__( '(No item)', 'learnpress' ); } ?>
    get_order_date() ) ) ); ?>
    get_formatted_order_total() ); ?>
    get_data( 'payment_method' ), $order_received->get_id() ); ?>