[Resolved] How to have "Edit" before Profile Group Tab in editing
I want to have a “Edit” text before the name of profile groups when users editing their profiles.
Such as: Edit Base | Edit GroupProfile
I see, it’s rendered here
<li %1$s><a href="%2$s">%3$s</a></li>in the bp_profile_group_tabs() function in bp-xprofile-template.php.
I want to make it from
<li %1$s><a href="%2$s">%3$s</a></li>
<li %1$s><a href="%2$s">Edit %3$s</a></li>
But I don’t know how to override this function, I have tried copying the function content and paste into theme’s functions.php and rename the function to custom_bp_profile_group_tabs and in the edit.php file I set it to call to the new function:
<ul class="button-nav"> <?php custom_bp_profile_group_tabs(); ?> </ul>
but it didn’t work. Is there a way to override this function or another way to have the word “Edit” before the Profile Group Tab. Thanks anyone for help!
- The topic ‘[Resolved] How to have "Edit" before Profile Group Tab in editing’ is closed to new replies.