Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ketczpatel

    (@ketczpatel)

    function cs_add_order_again_to_my_orders_actions( $actions, $order ) {
    	if ( $order->has_status( 'completed' ) ) {
    		$actions['order-again'] = array(
    			'url'  => wp_nonce_url( add_query_arg( 'order_again', $order->id ) , 'woocommerce-order_again' ),
    			'name' => __( 'Order Again', 'woocommerce' )
    		);
    	}
    	return $actions;
    }
    add_filter( 'woocommerce_my_account_my_orders_actions', 'cs_add_order_again_to_my_orders_actions', 50, 2 );
    

    Above code is used for the re order

Viewing 1 replies (of 1 total)