It looks like you have the function both in bp-custom.php and in your plugin.
You don’t need a plugin.
Put your code in plugins/bp-custom.php only.
Or in your-theme/functions.php
Related Posts:
- WordPress Stripping Colons?
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- How can I limit the length of the previous/next posts in my WordPress Theme?
- How do I add a php statement to a jQuery string
- Adding Field to Profile “Name”
- Trying to use Ternary operators with WP Conditionals
- the_author_meta not working
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Removing WordPress profile fields from non-admins
- Logout and redirect using the WP Menu
- How to do conditional publishing?
- Second Navigation inside header
- Remove username in emails or swap username for email
- Help with adding pagination to custom wp_query
- items_wrap not working
- conditional statement for custom taxonomy
- BuddyPress User Profile Menu
- Add user settings to specific roles
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- Create a new usermeta field for users
- Change Navigation Bar based on logged in or not
- Multiple WordPress Menus that will only display all pages
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- Menu Limitations
- Show css depending on activity type in BuddyPress activity-loop [closed]
- How to remove role=”navigation” from all nav elements?
- How to retrieve current wordpress profile page URL?
- How do I programmatically set a user as spam in BuddyPress? [closed]
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- Modify user profile data through scripting?
- Help with Sub and Sub-Sub Navigation
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Is_front_page inside header.php is always returning true
- PHP conditional script issue
- How to check if the current page is at a specified path in the URL?
- Buddypress update user avatar image via REST
- How to style one item from main navigation?
- Add login hyperlink to secondary navigation menu
- Add class to DIV depending on page loaded
- Help with page nav?
- Override user-edit.php to design own profile page
- Can I set up a hover animation in CSS depending on a PHP conditional?
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Menu Custom Data Attributes
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Multidimensional Array
- How to modify mobile nav menu text in theme
- Conditional featured image with youtube thumbnail
- Why BuddyPress fields not saving?
- Change homepage content if user is logged in – BuddyPress
- How to do something when user profile rendereing?
- php return username of currently viewed author profile
- Nav-Menu not showing up
- implementing a jQuery “click to expand” link in WordPress [closed]
- posts_nav_link pulling in multiple post types
- Custom navigation menu with awsAccordion
- Make next post button link to random post
- is user member of a group, show them categories [closed]
- Why can’t I add a custom image in my navigation?
- Conditionally remove comments and post meta in functions.php
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- exclude custom post type from running a function
- include content within conditional statement?
- Customize Buddypress adminbar [closed]
- Adding a navigation page state to individual blog and portfolio pages
- Show label for value only when value exists, basic php
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- Generate a QR code when creating a new WordPress user
- In PHP how do I make my navigation bar show certain links to admins only?
- copy fields value to another field
- I want to show cart items number if any or nothing, simple CART text
- How to set Nav as a default menu in wordpress
- Conditional formatting on data fetched from MYSQL
- Find and print first entry from WordPress post in custom excerpt?
- How to add locations input to user profile?
- Adding if statement
- Updating User Profile information removes image
- Change Login or Logout text based on status
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- How to create a sub-page of sub-page?
- Change username link in admin bar
- how to get buddy press messages based on thready_id?
- index.php navigation
- Create a dynamic buddupress tab
- If else statement based on referral URL
- If Month=Particular month display content [closed]
- Php conditional help needed
- Get string from array and start loop [closed]
- WordPress display name string manipulation
- Nav Menu Display
- Hide a nav menu item based on get_user_meta results
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- Open WordPress Page from selected option dropdown
- Not able to see the error [closed]
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- Nav menù doesn’t display selected pages