Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    This functionality does not exist yet in Ultimate Member so we would need to discuss this as a team.

    Thanks 🙂

    Thread Starter spyderlol

    (@spyderlol)

    Temporal Solution: Go to /wp-content/plugins/ultimate-member/core

    Find archive um-user-post.php

    Go to line 126 aprox and modify the fuction called add_tab

    function add_tab( $tabs ){
    
    		$tabs['posts'] = array(
    			'name' => __('Posts','ultimatemember'),
    			'icon' => 'um-faicon-pencil',
    		);
    
    	if ( get_current_user_id() == um_profile_id() ) {
    		$tabs['comments'] = array(
    			'name' => __('Comments','ultimatemember'),
    			'icon' => 'um-faicon-comment',
    		);
            }
    		return $tabs;
    
    	}

    NOTE: Modify core archives is not recommended, futhermore each update you will lost changes.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to do private tabs’ is closed to new replies.