Just FYI, you can also programatically create new tabs and add content into it.
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
function geodir_detail_page_tab_list_extend($tab_array)
{
$tab_array['my_new_tab'] = array(
'heading_text' => __('New Tab',GEODIRECTORY_TEXTDOMAIN),
'is_active_tab' => false,
'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'my_new_tab'),
'tab_content' => ''
);
return $tab_array ;
}
Now for the second part, to show Content when user click on that tab, do this:
add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
function geodir_my_new_tab_content($tab_index)
{
if($tab_index =='my_new_tab')
{
echo "Hello world!!";
}
}
Please make sure that ‘my_new_tab’(tab index) is the same as the array index created in the first step.
Thanks and let us know how you went.