query_orders( array( 'fields' => 'ids' ) ); if ( ! $query_orders->get_items() ) { Template::print_message( __( 'No orders!', 'learnpress' ), 'info' ); return; } ?>

get_items() as $order_id ) { $order = learn_press_get_order( $order_id ); ?>
get_order_number() ); ?> get_formatted_order_total() ); ?> get_order_status_html() ); ?> get_order_date() ); ?> get_profile_order_actions(); if ( $actions ) { foreach ( $actions as $action ) { $action_text = isset( $action['text'] ) ? (string) $action['text'] : ''; $action_url = isset( $action['url'] ) ? (string) $action['url'] : ''; $action_class = isset( $action['class'] ) ? (string) $action['class'] : ''; $action_data_attrs = ''; if ( ! empty( $action['data'] ) && is_array( $action['data'] ) ) { foreach ( $action['data'] as $data_key => $data_value ) { $action_data_attrs .= sprintf( ' data-%1$s="%2$s"', esc_attr( str_replace( '_', '-', (string) $data_key ) ), esc_attr( (string) $data_value ) ); } } $action_attrs = ''; if ( ! empty( $action_class ) ) { $action_attrs .= sprintf( ' class="%s"', esc_attr( $action_class ) ); } $action_attrs .= $action_data_attrs; if ( ! empty( $action_url ) ) { printf( '%s', esc_url_raw( $action_url ), $action_attrs, esc_html( $action_text ) ); } else { printf( '%s', $action_attrs, esc_html( $action_text ) ); } } } ?>