%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_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( '
|
|
| get_order_date() ) ) ); ?> | |
| get_formatted_order_total() ); ?> | |