Menu order position Buddypress


#1

Bonjour,

Après avoir suivi les tutoriaux, je n’arrive pas à modifier la position de ‘Media’ dans le menu de navigation Buddypress.

J’ai essayé de suivre ce tutoriel, mais la position ne bouge pas.

Auriez vous une idée s’il vous plait ?


Hello,

After following the tutorials , I can not change the position of ‘Media’ BuddyPress in the navigation menu.

Small screen to image what I want :

I tried to follow this tutorial , but the position does not move.

Would you have an idea please ?

Merci beaucoup !


#2

Hello @kawok,

It should work! Well, you can try below code if it helps you ( after removing previous code that you have added from doc link ).

Add this code to your theme’s function.php file :

// Reorder media tab position in profile
add_filter('rtmedia_media_tab_position', 'rtmedia_reorder_media_tab_position', 10, 1);
function rtmedia_reorder_media_tab_position( $pos ){
	return 20;
}

Thanks.


#3