- 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('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'; |
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_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); } |
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_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. |
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_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; | |
} |
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('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> |
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( '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; | |
} |
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('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; | |
} |
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('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; | |
} |
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('design_wise_excerpt_length','change_excerpt_limit'); | |
function change_excerpt_limit($designWiseExcerpt){ | |
//changes in array according to requirement | |
return $designWiseExcerpt; | |
} |
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_template_markup','agp_final_template_markup'); | |
function agp_final_template_markup($markup) { | |
//change popup markup before show | |
return $markup; | |
} |
NewerOlder