$order_count, 'meta_key' => '_customer_user', 'meta_value' => get_current_user_id(), 'post_type' => 'shop_order', 'post_status' => 'publish' ) ) ); if ( $customer_orders ) : ?>
get_order_number(); ?> | name, 'woocommerce' ) ); ?> | get_formatted_order_total(), $item_count ); ?> | status, apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $order ) ) ) { $actions['pay'] = array( 'url' => $order->get_checkout_payment_url(), 'name' => __( 'Pay', 'woocommerce' ) ); } if ( in_array( $order->status, apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { $actions['cancel'] = array( 'url' => $order->get_cancel_order_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ), 'name' => __( 'Cancel', 'woocommerce' ) ); } $actions['view'] = array( 'url' => $order->get_view_order_url(), 'name' => __( 'View', 'woocommerce' ) ); $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ); if ($actions) { foreach ( $actions as $key => $action ) { echo '' . esc_html( $action['name'] ) . ''; } } ?> |