How to include the global $bp variable within newly created directory within my current theme.
So I created a new folder to support my listings functionality for my website. The one issue is that I need to use the global $bp variable to access the currently logged in user’s id (which I know how to access already.) My question is… what file(s) do I need to include or what concrete steps do I need to take in order to be able to use the global $bp variable. I already know about bp-custom.php and functions and the ability to use $bp here. But I would prefer not to do this for the sake of organizing and separating functionality on my site.
Any help would be greatly appreciated.
Thanks in advance.
You must be logged in to reply to this topic.