Skip to:

Move profile field group to under settings

  • smurfworks


    Hey team,

    I’ve searched older replies for an answer on how to do this but can’t seem to find anything that matches this scenario. I have a profile field group of custom fields that currently sits within the ‘view’ and ‘edit’ profile tab on buddypress. For both of these views, I’d like to move editing this single group to under the settings tab.

    I assume there’s probably some custom development involved, however as we have this great implementation of field management, I’m hoping there’s a way I can move it under the settings menu and still re-use a bunch of this functionality that’s all ready to go.

    I’m sorry if this topic is inappropriate for this forum, it’s my first time asking for help here.


Viewing 1 replies (of 1 total)

  • shanebp


    You can add a tab under ‘settings’ by using the bp_setp_nav hook.
    For example:

    	bp_core_new_subnav_item( array(
    		'name'                    => __( 'New Tab', 'your-domain' ),
    		'slug'                    => 'new-tab',
    		'parent_url'              => bp_loggedin_user_domain() . 'settings/',
    		'parent_slug'             => 'settings',
    		'screen_function'         => 'new_tab_function',
    		'show_for_displayed_user' => false
    	) );

    And then use the screen_function to add fields.
    But you’ll have to write your own handlers for edit and update of the fields that you add.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar