Plugin Developers: Changes around $bp global
- 
		Just a warning, I’m going to be making a change to $bp before this first release that will effect plugin developers. Currently, $bp is an array, and you access variables like $bp and $bp. This will be changing to an object – the structure will remain the same, however the way you reference variables is different. Here’s some examples: $bp changes to $bp->current_component $bp changes to $bp->groups->slug $bp changes to $bp->friends->table_name $bp changes to $bp->loggedin_user->domain; $bp changes to $bp->loggedin_user->id; $bp changes to $bp->displayed_user->domain; $bp changes to $bp->displayed_user->id; These changes will be committed sometime today. Not only is it much cleaner, it also is easier to include within SQL statements without the need to escape. 
- The topic ‘Plugin Developers: Changes around $bp global’ is closed to new replies.
 
 just look here guys
 just look here guys