Skip to content

Instantly share code, notes, and snippets.

@r-a-y
Last active November 19, 2022 00:34
Show Gist options
  • Save r-a-y/5736878 to your computer and use it in GitHub Desktop.
Save r-a-y/5736878 to your computer and use it in GitHub Desktop.
A BuddyPress debug plugin that outputs some useful BuddyPress global variables in the footer.
@Jonnyauk
Copy link

Good work r-a-y, this is great thanks!

I hope you don't mind but I've slightly adapted this into a WordPress plugin that adds the info to the admin menu. I'd like to extend it a bit in the future too, but it means that it doesn't interfere with the front-end UI as your code means that it overlays on the website, stopping me clicking on buttons and things sometimes (I also only show to admin level users).

Check out the work in progress at https://github.com/TancDesign/Tanc-BuddyPress-Helper

@iheartwine
Copy link

Hello r-a-y, how shall I implement this plugin into my BP theme? :(

@r-a-y
Copy link
Author

r-a-y commented Oct 20, 2013

Sorry everyone for not replying! I don't get notified of gist comments!

@Jonnyauk - Good job on extending the codebase of this debug plugin. I just added a check so only admins can view the debug output.

@iheartwine - This is a debug plugin for theme developers. This is not meant to be included into a theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment