- htttp://www.flippercode.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('agp_verify_age','agp_show_modal'); | |
function agp_show_modal($show_popup,$post_id) { | |
//check condition according to post id & then return boolean value | |
return $show_popup; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('agp_current_settings','agp_changed_plugin_settings'); | |
function agp_changed_plugin_settings($settings) { | |
//Modify Settings According To Custom Conditions. | |
return $settings; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_exclude_countries','excluding_countries'); | |
function excluding_countries($countries) { | |
/*Return array of country codes which you want to exclude to display marker. Some countries have same zipcodes due to which markers are displayed on both countries and this represent product delivery area, however you need to display it in only one country as your deliver in one country only */ | |
return $countries; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_placeholder_search','wdap_placeholder_search'); | |
function wdap_placeholder_search($placeholder) { | |
//Modify search textbox's default placeholder value. | |
return $placeholder; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_zipcode_listing_heading','wdap_zipcpde_listing_heading'); | |
function wdap_zipcpde_listing_heading($text) { | |
//Modify Zipcode Listing Heading. | |
return $text; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_pa_tab_heading','wdap_tab_heading'); | |
function wdap_tab_heading($text) { | |
//Modify Product Availability Tab Label On Product Page. | |
return $text; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_map_icon','wdap_map_icon_update'); | |
function wdap_map_icon_update($icon) { | |
// update google map icon. | |
return $icon; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wdap_loader_img_url','wdap_loader_image'); | |
function wdap_loader_image($icon_url) { | |
//replace icon url. | |
return $icon_url; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wpgmp_map_lang','wpgmp_map_lang' ); | |
function wpgmp_map_lang($lang) { | |
global $post; | |
if( $post->ID == 96 ) | |
{ | |
$lang = 'hi'; | |
} | |
return $lang; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wpgmp_text_settings','wpgmp_text_settings',1,2); | |
function wpgmp_text_settings($strings,$map_id) { | |
$strings['search_placeholder'] = ""; | |
return $strings; | |
} |