We recently needed to debug some BuddyPress actions for a plugin we were working on. Below is a cheatsheet that Alec created. Enjoy! //debug stuff – find hooks // function print_profile_update() { // echo ‘print_profile_update’; // } // add_action(‘profile_update,’, ‘print_profile_update’); // function print_xprofile_screen_display_profile() { // echo ‘print_xprofile_screen_display_profile’; // } // function print_xprofile_screen_edit_profile() { // echo…

Read More

Up until today I did not know the difference between bp-custom.php and functions.php within a BuddyPress installation. It turns out that bp-custom.php is basically a functions file that is theme-independent. What that means is that if you have a function that you want to run irrespective of whatever theme is active, you put it in…

Read More

Today I needed to create a BuddyPress conditional statement but none of the “normal” conditional tags suited my needs. Specifically, I needed to determine whether or not a user was a group moderator or admin role. The boolean that helps determine that can be found on the BuddyPress Function Reference page. There is lots of…

Read More