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
//use this filter to change the label of the "Select Category" label in the category filter in listings | |
add_filter('wpgmp_text_settings','wpgm_category_label_change',1,10); | |
function wpgm_category_label_change( $category_label ) { | |
$category_label['select_category'] = 'Select Department'; //insert any category label as per your need | |
return $category_label; | |
} |
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
//A filter to disable the google maps script in Enfold Theme. Need to insert this filter on activated Wordpres theme functions.php | |
add_filter('avf_load_google_map_api', 'disable_google_map_api', 10, 1); | |
function disable_google_map_api($load_google_map_api) { | |
$load_google_map_api = false; | |
return $load_google_map_api; | |
} |
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
//Filter to 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 == 7520 ) | |
{ | |
$lang = 'en'; | |
} | |
if ( $post->ID == 7534 ) |
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
//This is the code to display your map and listings side to side. Please insert it in your activated theme functions.php | |
add_filter("wpgmp_map_output","wpgmp_map_output",1,4); | |
function wpgmp_map_output($output,$map_div,$listing_div,$map_id) | |
{ | |
$output="<table width='100%'> | |
<tr><td width='50%' valign='top' style='vertical-align:top;'>".$listing_div."</td> | |
<td width='50%' valign='top' style='vertical-align:top;'>".$map_div."</td></tr> | |
</table>"; |
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
//Filter the except length to 20 words. | |
* | |
* @param int $length Excerpt length. | |
* @return int (Maybe) modified excerpt length. | |
*/ | |
function wpmaps_custom_excerpt_length( $length ) { | |
return 20; | |
} | |
add_filter( 'excerpt_length', 'wpmaps_custom_excerpt_length', 999 ); |
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
//Filter to change the placeholder text of Zip code search bar: Delivery Area Plugin | |
add_filter('wdap_provide_zipcode_placeholder','wdap_provide_zipcode_placeholder',1,1); | |
function wdap_provide_zipcode_placeholder($zipcode_placeholder) | |
{ | |
$zipcode_placeholder = 'Enter Post Code'; | |
return $zipcode_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
# Insert this filter on your activated theme functions.php | |
add_filter("wdap_pa_tab_heading","wdap_change_product_availability_text"); | |
function wdap_change_product_availability_text($text){ | |
$text = "Product Availability"; // Insert any text which you want to change | |
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
// Was this helpful social media text change "Awesome Share it" to any other text | |
You need to insert this filter on your activated theme functions.php | |
add_filter( 'wth_change_text', 'wth_change_text',1,1 ); | |
function wth_change_text($wth_js_lang) { | |
$wth_js_lang['wth_share_ask']= 'Enter your Text';// Insert text which you want to be change | |
return $wth_js_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
//Change the Listing Search bar text by using a Hooks, Please insert this code on your activated theme functions.php | |
add_filter('wpgmp_text_settings','wpgmp_text_settings',1,1); | |
function wpgmp_text_settings($default) { | |
$default['search_placeholder']= 'Enter your Country';// Insert text which you want to be change | |
return $default; | |
} |
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('wpbmp_purpose_placholder','wpbmp_purpose_placholder'); | |
function wpbmp_purpose_placholder($purpose_plc) | |
{ | |
$purpose_plc = 'Insert your custom Purpose message Here'; | |
return $purpose_plc; | |
} |
NewerOlder