Function Reference: geodir_detail_page_tabs_array
Summary
Build and return the list of available tabs as an array.
Package
GeoDirectory
Return Values
- (mixed|array)
- Tabs array.
Change Log
Since: 1.0.0
Filters
‘geodir_detail_page_tab_list_extend’ [Line: 1402]
Source File
geodir_detail_page_tabs_array() is located in geodirectory-functions/custom_functions.php [Line: 1334]
Source Code
function geodir_detail_page_tabs_array() { $arr_tabs = array(); /** * Filter detail page tab display. * * @since 1.0.0 */ $arr_tabs['post_profile'] = array( 'heading_text' => __( 'Profile', 'geodirectory' ), 'is_active_tab' => true, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'post_profile' ), 'tab_content' => '' ); $arr_tabs['post_info'] = array( 'heading_text' => __( 'More Info', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'post_info' ), 'tab_content' => '' ); $arr_tabs['post_images'] = array( 'heading_text' => __( 'Photos', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'post_images' ), 'tab_content' => '' ); $arr_tabs['post_video'] = array( 'heading_text' => __( 'Video', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'post_video' ), 'tab_content' => '' ); $arr_tabs['special_offers'] = array( 'heading_text' => __( 'Special Offers', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'special_offers' ), 'tab_content' => '' ); $arr_tabs['post_map'] = array( 'heading_text' => __( 'Map', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'post_map' ), 'tab_content' => '' ); $arr_tabs['reviews'] = array( 'heading_text' => __( 'Reviews', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'reviews' ), 'tab_content' => 'review display' ); $arr_tabs['related_listing'] = array( 'heading_text' => __( 'Related Listing', 'geodirectory' ), 'is_active_tab' => false, 'is_display' => apply_filters( 'geodir_detail_page_tab_is_display', true, 'related_listing' ), 'tab_content' => '' ); /** * Filter the tabs array. * * @since 1.0.0 */ return apply_filters( 'geodir_detail_page_tab_list_extend', $arr_tabs ); }