Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,901
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
>Is there a way to pre-filter these before the ‘<l1>…‘ is setup?
afaik, no.
The filter hook is in a foreach loop.
So you for each item you get an array that has 2 elements- the li code as a string and $user_nav_item.
So your function could do a string replace on the li item and then echo the result.
Or use $user_nav_item, except for ‘name’ and create your own li item and then echo the result.