Echo slug of custom nav component
I have created a few custom nav and respective screens using
and everything works fine.
Now I need to include hyperlinks to these navs/screens in some of my php files but I can’t figure out how to retrieve/echo those hyperlinks dynamically. I could kind of hardcode them based on the slug of each component, like this:
echo bp_loggedin_user_domain(). '/mynavslug/';
but this is obviously not the right solution because I might change the slugs at some point.
How can I retrieve/echo the entire slug of a custom nav component dynamically?
Does this need to be defined somewhere?
- You must be logged in to reply to this topic.