Redirect To External Website NOT WORKING
-
Hello how to use this function?
I tried to use this function via my themefunction.php
using custom url seems nothing happen when i click the CHECK Availability and im using this code.function hotelier_custom_add_to_cart_from_room_list_redirect( $url ) { $checkin = HTL()->session->get( 'checkin' ); $checkout = HTL()->session->get( 'checkout' ); $custom_url = add_query_arg( array( 'checkin' => sanitize_text_field( $checkin ), 'checkout' => sanitize_text_field( $checkout ), ), 'https://example.com' ); return $custom_url; } add_filter( 'hotelier_add_to_cart_from_room_list_redirect', 'hotelier_custom_add_to_cart_from_room_list_redirect' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect To External Website NOT WORKING’ is closed to new replies.