Skip to content

Instantly share code, notes, and snippets.

View wpflippercode's full-sized avatar

Sandeep Kumar wpflippercode

View GitHub Profile
@wpflippercode
wpflippercode / gist:18ab5dd27156ece70a5f00b537cfb398
Created November 13, 2017 13:06
Update default placeholder text of search input textbox inside product availability google map
add_filter('wdap_placeholder_search','wdap_placeholder_search');
function wdap_placeholder_search($placeholder) {
//Modify search textbox's default placeholder value.
return $placeholder;
}
@wpflippercode
wpflippercode / gist:39311393f30db99f010bbdba2b8444dd
Created November 13, 2017 13:02
Update Default Heading Of Product Availability Tab
add_filter('wdap_pa_tab_heading','wdap_tab_heading');
function wdap_tab_heading($text) {
//Modify Product Availability Tab Label On Product Page.
return $text;
}
@wpflippercode
wpflippercode / gist:43739a6261d8d5da26f6b42f6eac1834
Last active November 13, 2017 12:58
Update Marker's Icon Image In Google Maps Representing Product Availability Areas
add_filter('wdap_map_icon','wdap_map_icon_update');
function wdap_map_icon_update($icon) {
// update google map icon.
return $icon;
}
@wpflippercode
wpflippercode / gist:b71df14a8e6c0c89b693c8444bd1bb4a
Created November 8, 2017 11:58
Change loader image in delivery area form
add_filter('wdap_loader_img_url','wdap_loader_image');
function wdap_loader_image($icon_url) {
//replace icon url.
return $icon_url;
}
@wpflippercode
wpflippercode / gist:aa861eec6865d3941fd4c535c9878f08
Created October 11, 2017 10:13
Change Map Language According to Site Language
add_filter('wpgmp_map_lang','wpgmp_map_lang' );
function wpgmp_map_lang($lang) {
global $post;
if( $post->ID == 96 )
{
$lang = 'hi';
}
return $lang;
}
@wpflippercode
wpflippercode / gist:a5c92df20c86fbc722c0b39c62aa3ac2
Created September 28, 2017 12:33
Modify Strings Used on Frontend in Google Maps Plugin
add_filter('wpgmp_text_settings','wpgmp_text_settings',1,2);
function wpgmp_text_settings($strings,$map_id) {
$strings['search_placeholder'] = "";
return $strings;
}
@wpflippercode
wpflippercode / gist:56b1d7853cd7fede2ec58a9a0495b1b9
Created September 14, 2017 07:39
Insert custom html after google maps container
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;
}
@wpflippercode
wpflippercode / gist:4c40add5b384b5d71b1c2d82e20fe95b
Last active September 14, 2017 07:35
Add custom css class to google maps container div
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;
}
@wpflippercode
wpflippercode / gist:1e6581c5805adde80427dd8a078b3d05
Created September 14, 2017 07:14
Add custom html before google maps container.
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;
}
@wpflippercode
wpflippercode / gist:cb28ef05d260b8fe5ed5062453fa33ac
Created September 14, 2017 06:15
Modify Location Listing below Google Maps using Hook
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;
}