WPML Support

WPML Multi-Currency

If you are using WPML multi-currencies in WooCommerce, then you’ll need to insert this snippet. The snippet registers the availability search with WPML.

/**
 * Let's WPML run multi-currency actions during Availability Search for WooCommerce Bookings AJAX requests.
 */
add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 );
 
function add_action_to_multi_currency_ajax( $ajax_actions ) {
 
    $ajax_actions[] = 'aswb_process_search_request';
    return $ajax_actions;
 
}Code language: PHP (php)
Was this page helpful?