Our website uses cookies to improve and personalize your experience. Our website may also include cookies from third parties like Google Adsense, Google Analytics, YouTube. By using this website, you consent to the use of cookies.

Hooks for Developers

Hooks

This plugin is developer friendly. A developer can customize this plugin using hooks added in this plugin. Below are the hooks details with example code.

wdap_map_icon

Use this filter to change the marker icon on the delivery area map.

add_filter('wdap_map_icon','wdap_map_icon_url');
function wdap_map_icon_url($url){

//Provide url of your custom map icon
$url = 'http://www.yourwebsite.com/your-icon-file.png';
return $url;
}

wdap_provide_zipcode_placeholder

Use this placeholder to change placeholder of zipcode text field on woocommerce pages on delivery area form only.

add_filter('wdap_provide_zipcode_placeholder','wdap_zipcode_placeholder_on_woopages');
function wdap_zipcode_placeholder_on_woopages($placeholder){

//change placehoder text
$placeholder = 'Your Custom Placeholder Text Here';
return $placeholder;
}

wdap_pa_tab_heading

Change heading of product availability tab on product detail page.

add_filter('wdap_pa_tab_heading','wdap_product_availability_tab');
function wdap_product_availability_tab( $heading ){

//Change Heading Of Product Availability Tab
$heading = 'Your Custom Product Availability Tab Heading Here';
return $heading;
}

wdap_change_translation_order_button_text

Use this filter to change text of place order button on checkout page in case of order restriction enabled from backend.

add_filter('wdap_change_translation_order_button_text','wdap_place_order_button_checkout');
function wdap_place_order_button_checkout($label){

//Change Button Label
$label = 'Your Custom Button Label';
return $label;
}

wdap_zipcode_listing_heading

Use this filter to change heading about zip code listing in product availability tab on the product page.

add_filter('wdap_zipcode_listing_heading','wdap_product_availability_desc');
function wdap_product_availability_desc($heading){

//Customise description
$description = 'Your Custom heading About Markers On Map Goes Here';
return $heading;
}

wdap_exclude_countries

Use this filter to hide unwanted markers for any country by simply passing their short name.

add_filter('wdap_exclude_countries','wdap_exclude_countries');
function wdap_exclude_countries((array)$countries){
//Add shortnames of countries in array dynamically
// For eg. if you do not want to check user provided zipcode for any reason in singapore.
// $countries[] = 'SG';
// See country list shortname from here : //http://creatingawebstore.com/woocommerce-country-codes-and-state-codes-list.html
return $countries;
}

wdap_enable_marker_country_restrict

Use this filter if you want to remove the restriction on markers and show markers outside the restricted country also.

add_filter('wdap_enable_marker_country_restrict','wdap_marker_restrict_in_selected_country');
function wdap_marker_restrict_in_selected_country((boolean)$restrict){
//To show all markers having same zipcode in different countries to bypass country restriction
//$restrict = false;
return $restrict;
}

wdap_placeholder_search

Use this filter to change placeholder text of google autosuggestion text field on the delivery area map.

add_filter('wdap_placeholder_search','wdap_placeholder_search_text_on_map');
function wdap_placeholder_search_text_on_map($placeholder){
//Set Custom Placeholder Text
$placeholder = 'Set Your Custom Placeholder Text Here';
return $placeholder;
}

Client Testimonials

Install Plugin Now!

This plugin is exclusively available at codecanyon.net. You'll get free updates and full support to use this plugin.