WordPress at Your Fingertips
function is not described

woocommerce_order_again_button() WC 1.0

Display an 'order again' button on the view order page.

Return

null. Nothing.

Usage

woocommerce_order_again_button( $order );
$order(object) (required)
Order.

Code of woocommerce_order_again_button() WC 5.6.0

function woocommerce_order_again_button( $order ) {
	if ( ! $order || ! $order->has_status( apply_filters( 'woocommerce_valid_order_statuses_for_order_again', array( 'completed' ) ) ) || ! is_user_logged_in() ) {
		return;
	}

	wc_get_template(
		'order/order-again.php',
		array(
			'order'           => $order,
			'order_again_url' => wp_nonce_url( add_query_arg( 'order_again', $order->get_id(), wc_get_cart_url() ), 'woocommerce-order_again' ),
		)
	);
}