• Resolved utkarshs

    (@utkarshs)


    Hello,

    I want to change the tab name from “photos” to “projects” permanently. How to do this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter utkarshs

    (@utkarshs)

    please help……..also can I do it without the translation plugin? Don’t want to install a plugin just for this.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @utkarshs

    You can use the um_profile_tabs hook to modify the profile menu. You can add or remove a tab, change a tab name and icon. See an example:

    // change the tab name from “Photos” to “Projects”.
    add_filter( 'um_profile_tabs', function ( $tabs ) {
    	if ( array_key_exists( 'photos', $tabs ) ) {
    		$tabs['photos']['name'] = __( 'Projects', 'um-user-photos' );
    	}
    	return $tabs;
    }, 810 );

    Note: this solution does not work if you have the “Ultimate Member – Profile tabs” plugin activated.

    Regards

    Thread Starter utkarshs

    (@utkarshs)

    Thank you so much, this worked perfectly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Name change’ is closed to new replies.