Skip to content

Instantly share code, notes, and snippets.

Sandeep Kumar wpflippercode

Block or report user

Report or block wpflippercode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wpflippercode
wpflippercode / gist:7044871fb20bcf05ca030e5f8ad05b63
Created Jan 21, 2019
Change Marker Cluster Icon Using Filter
View gist:7044871fb20bcf05ca030e5f8ad05b63
add_filter('wpgmp_map_markercluster',change_cluster_marker,10,2);
function change_cluster_marker($cluster_data,$map){
// Add map specific condition here
if($map->map_id == '1'){
//Change Main Cluster Image
$cluster_data['icon'] = 'university.png';
View gist:0b119ae1b6714b3e9657356adac70410
add_action("wp_head","fc_reset_zoom");
function fc_reset_zoom() {
echo '
<script>jQuery(document).ready(function($){ alert("ok");
$("body").on("click",".test",function(){ var map_obj = $("#map5").data("wpgmp_maps"); map_obj.map.setZoom(8); }
@wpflippercode
wpflippercode / gist:97ea3c89de11d2e3ba72e36c6e1c0de0
Created May 16, 2018
Verify Cookies Consent Before Showing the Google Maps
View gist:97ea3c89de11d2e3ba72e36c6e1c0de0
add_filter('wpgmp_accept_cookies','wpgmp_accept_cookies');
function wpgmp_accept_cookies($is_allowed) {
// cookies-notice plugin integration -
if( function_exists('cn_cookies_accepted') ) {
$is_allowed = cn_cookies_accepted();
}
// cookies-consent plugin integration. You may change cookie name here according to your needs.
@wpflippercode
wpflippercode / gist:b02e04871fe823d1b71bb04993cc153e
Created Nov 27, 2017
Show Current Post Marker only on the Google Maps
View gist:b02e04871fe823d1b71bb04993cc153e
add_filter('wpgmp_show_place','wpgmp_show_place',1,3 );
function wpgmp_show_place($show,$place,$map) {
global $post;
if($place['id'] != $post->ID) {
$show = FALSE;
}
return $show;
}
@wpflippercode
wpflippercode / gist:b6b2df148979a779edcafb5cbe4aefa6
Created Nov 16, 2017
Customize Ecard Email Content & Design - Woocommerce Ecards Pro
View gist:b6b2df148979a779edcafb5cbe4aefa6
add_filter('ecp_ecard_markup','customized_ecard_markup',10,2);
function customized_ecard_markup($defaultMarkup,$content){
// Please keep the classes name on tags as it is as they are used for generating preview in JS
$defaultMarkup = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>'.$content['website_name'].' - Ecard</title>
@wpflippercode
wpflippercode / gist:1c8c26087ce61bd8224f2c5054cb1e5a
Created Nov 16, 2017
Remove Visit Site Link From Ecard Email : Woocommerce Ecards Pro
View gist:1c8c26087ce61bd8224f2c5054cb1e5a
add_filter( 'ecp_display_sitelink', 'do_not_display_site_link' );
function do_not_display_site_link($display){
//Return boolean value true/false to display/hide link
$display = false;
return $display;
}
@wpflippercode
wpflippercode / gist:d0f92eb6540c8da18570d95a5564ec37
Created Nov 15, 2017
Change the featured image slider - WP Featured Images Pro
View gist:d0f92eb6540c8da18570d95a5564ec37
add_filter('wfip_slider_markup','wfip_slider_markup_configuration',10,3);
function wfip_slider_markup_configuration($html,$images,$received) {
//modify slider html markup, images according to requirements.
return $html;
}
@wpflippercode
wpflippercode / gist:eff99928d8a1048a2ec576196d0f44b1
Created Nov 15, 2017
Change Slider Effect Or Any Other Configuration For Particular Post / Page - WP Feature Image Slider Pro
View gist:eff99928d8a1048a2ec576196d0f44b1
add_filter('wfip_post_type_wise_config','wfip_slider_configuration');
function wfip_slider_configuration($config) {
//modify slider configuration based on post id present in config and return updated array
return $config;
}
@wpflippercode
wpflippercode / gist:39ad04c3cb29bbed781e8861f34a6fa6
Created Nov 15, 2017
Change Excerpt Length Of Main Content On Image Overlay For Any Design
View gist:39ad04c3cb29bbed781e8861f34a6fa6
add_filter('design_wise_excerpt_length','change_excerpt_limit');
function change_excerpt_limit($designWiseExcerpt){
//changes in array according to requirement
return $designWiseExcerpt;
}
@wpflippercode
wpflippercode / gist:ee404676096cfbfbc978704a04606970
Created Nov 15, 2017
Change HTML Markup For Age Verification Popup Template
View gist:ee404676096cfbfbc978704a04606970
add_filter('agp_current_template_markup','agp_final_template_markup');
function agp_final_template_markup($markup) {
//change popup markup before show
return $markup;
}
You can’t perform that action at this time.