GeoDirectory Documentation (DO NOT REMOVE)

Franchise addon filters

You can use these filters in your child theme’s functions.php file.

Change the tab

[php]
function geodir_franchise_change_franchises_tab_text($text, $post_type) {
if ($post_type == ‘gd_place’) {
$text = __(‘More Branches’, ‘geodir-franchise’);
}
return $text;
}
add_filter( ‘geodir_franchise_franchises_tab_text’, ‘geodir_franchise_change_franchises_tab_text’, 10, 2 );
[/php]

Change the link to all franchise listings

[php]
function geodir_franchise_change_all_link_text($text, $post_type) {
if ($post_type == ‘gd_place’) {
$text = __(‘View all branches’, ‘geodir-franchise’);
}
return $text;
}
add_filter( ‘geodir_franchise_all_franchises_link_text’, ‘geodir_franchise_change_all_link_text’, 10, 2 );
[/php]

Change the Add franchise link

[php]
function geodir_franchise_change_add_link_text($text, $post_type) {
if ($post_type == ‘gd_place’) {
$text = __(‘Add Branch’, ‘geodir-franchise’);
}
return $text;
}
add_filter( ‘geodir_franchise_add_franchise_link_text’, ‘geodir_franchise_change_add_link_text’, 10, 2 );
[/php]