- htttp://www.flippercode.com
This file contains 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 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 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 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 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 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; | |
} |
This file contains 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_after_map','wpgmp_after_map',1,2 ); | |
function wpgmp_after_map($custom_html,$map) { | |
$custom_html = "<p class='map-description'>Insert custom html after google maps.</p>"; | |
return $custom_html; | |
} |
This file contains 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_container_class','wpgmp_map_container_class',1,2); | |
function wpgmp_map_container_class($class,$map) { | |
$class="custom_map_css"; | |
return $class; | |
} |
This file contains 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_before_map','wpgmp_before_map',1,2 ); | |
function wpgmp_before_map($section,$map) { | |
$section = "<p class='map-description'>Use below map to visit our offices and search nearby office.</p>"; | |
return $section; | |
} |
This file contains 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_listing','wpgmp_listing',1,2 ); | |
function wpgmp_listing($listing,$map) { | |
$listing['listing_placeholder'] = "<div class='listing-item'><h4>{marker_title}</h4><p>{marker_address}</p></div>"; | |
return $listing; | |
} |