Re: Plugin Developers: Changes around $bp global
Hi Burtadsit, for example, you have mu-plugins/myplugin.php and it includes with require_once(myplugin/classes/myclass.php)
then you try to get $bp->loggedin_user->id; it is just empty in that class file, although each function starts with ‘global $bp’; It used to work when it was array, now strangely it is empty at random.
This is the weird part, it is empty sometimes.
I temporarily saved all $bp stuff that i need to Session. My code is not poetry anymore…