Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to point a profile tab to page from another plugin


  • ugd
    Participant

    @ugd

    Hi,
    Trying to modify the BuddyPress plugin ‘BuddyPress JM Resume’ so that it will point to my own custom resume pages. The plugin uses this code to add a ‘resume’ tab to the profiles in BuddyPress:

    		function setup_nav( $nav = array(), $sub_nav = array() ) {
    
                $nav_name = __( 'Resume', 'buddypress_jm_resume' );
    
    			// Add 'hrm' to the main navigation
    			$main_nav = array(
    				'name' 		      => __( 'Resume', 'buddypress_jm_resume' ),
    				'slug' 		      => $this->id,
    				'position' 	      => $this->menu_order,
    				'screen_function'     => 'bp_jm_resumes',
    				'default_subnav_slug' => 'resume',
    			);
    
                // Determine user to use
                if ( bp_displayed_user_domain() ) {
                        $user_domain = bp_displayed_user_domain();
                } elseif ( bp_loggedin_user_domain() ) {
                        $user_domain = bp_loggedin_user_domain();
                } else {
                        return;
                }
    
    			parent::setup_nav( $main_nav, $sub_nav );
    
    		}

    I would like to change this so instead of the tab going to the resume section it would take them to a page using something like:

    “/resume/#user_name#/”

    Is this possible?

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    You’ll need to look at and adjust the screen function – bp_jm_resumes – for that nav item.
    Your question should be directed to the creator of that plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘How to point a profile tab to page from another plugin’ is closed to new replies.
Skip to toolbar