Pass link to template file. Use cart URL to avoid redirects.
This commit is contained in:
parent
1f1d8734d0
commit
211ef53a53
|
@ -2429,7 +2429,8 @@ if ( ! function_exists( 'woocommerce_order_again_button' ) ) {
|
|||
}
|
||||
|
||||
wc_get_template( 'order/order-again.php', array(
|
||||
'order' => $order,
|
||||
'order' => $order,
|
||||
'order_again_url' => wp_nonce_url( add_query_arg( 'order_again', $order->get_id(), wc_get_cart_url() ), 'woocommerce-order_again' ),
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue