Remove Profile Tab

This topic contains 5 replies, has 2 voices, and was last updated by  Paolo 8 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #62048

    Sara Graybill
    Buyer
    Post count: 18

    I’ve been trying to remove the Profile tab from a Webinar CPT I created. I’ve added the following code:

    
    
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
    
    	
    function geodir_detail_page_tab_list_extend($tab_array) {
    	if ( 'gd_webinars' == get_post_type() ) {
         		if(isset($tab_array['post_profile'])){
    		 	unset($tab_array['post_profile']);//unset in old one
    	 	}
         		if(isset($tab_array['post_info'])){
             	$new_tab_array['post_info'] = $tab_array['post_info'];// set in new array
             	$new_tab_array['post_info']['is_active_tab']='1';
    		 	unset($tab_array['post_info']);//unset in old one
    	 	}    
    
    		// now we set any remaining tabs that have not been assigned an order
    		foreach($tab_array as $key=>$tab){
    		$new_tab_array[$key]=$tab;
    		}	
    
    		return $new_tab_array ;
    	}
    	return;	
    }

    It works great on the webinar page http://utilitymarketconnections.com/webinar/airlink-raven-rv50-product-introduction-webinar/ but the other CPTs I’ve added are now getting an error message. http://utilitymarketconnections.com/service-providers/meter-data-management-mdm/accelerated-innovations/

    Any suggestions?

    #62053

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #62056

    Sara Graybill
    Buyer
    Post count: 18

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #62060

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #62063

    Sara Graybill
    Buyer
    Post count: 18

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #62066

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket