woocommerce_account_orders()WC 1.0

My Account > Orders template.

Хуки из функции

Возвращает

null. Ничего (null).

Использование

woocommerce_account_orders( $current_page );
$current_page(int) (обязательный)
Current page number.

Код woocommerce_account_orders() WC 9.3.3

function woocommerce_account_orders( $current_page ) {
	$current_page    = empty( $current_page ) ? 1 : absint( $current_page );
	$customer_orders = wc_get_orders(
		apply_filters(
			'woocommerce_my_account_my_orders_query',
			array(
				'customer' => get_current_user_id(),
				'page'     => $current_page,
				'paginate' => true,
			)
		)
	);

	wc_get_template(
		'myaccount/orders.php',
		array(
			'current_page'    => absint( $current_page ),
			'customer_orders' => $customer_orders,
			'has_orders'      => 0 < $customer_orders->total,
			'wp_button_class' => wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '',
		)
	);
}