Function Reference: geodir_cp_fields_tab
Summary
This function has not been documented yet.
Source File
geodir_cp_fields_tab() is located in geodir_custom_posts/geodir_cp_hooks_actions.php [Line: 76]
Source Code
function geodir_cp_fields_tab($tabs) { $tabs['geodir_manage_custom_posts'] = array( 'label' =>__( 'Custom Post Types',GEODIR_CP_TEXTDOMAIN )); $geodir_post_types = get_option( 'geodir_post_types' ); $post_types = geodir_get_posttypes(); if(!empty($post_types)) { foreach($post_types as $p_type) { if (!array_key_exists($p_type.'_fields_settings', $tabs)) { $post_type_array = $geodir_post_types[$p_type]; $listing_slug = $post_type_array['labels']['singular_name']; $tabs[$p_type.'_fields_settings'] = array( 'label' => sprintf(__('%s Settings', GEODIR_CP_TEXTDOMAIN ), ucfirst($listing_slug) ), 'subtabs' => array( array('subtab' => 'custom_fields', 'label' =>__( 'Custom Fields', GEODIR_CP_TEXTDOMAIN), 'request' => array('listing_type'=>$p_type)), array('subtab' => 'sorting_options', 'label' =>__( 'Sorting Options', GEODIR_CP_TEXTDOMAIN), 'request' => array('listing_type'=>$p_type)), ), 'request' => array('listing_type'=>$p_type) ); } } } return $tabs; }