BuddyPress
Here’s a step-by-step guide to zipping How to Zip a Folder Using Terminal or Command Line
Read MoreWe 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 MoreToday, I had the fun task of changing the way that the “Freshness” dates display in BuddyPress forums. The idea behind “Freshness” is that there is an easy-to-read way to let people know when the forum topic was last updated. By default, it displays something like, “1 week, 5 days, 3 hours”, and I wanted…
Read MoreUp 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 MoreI tend to use CSS to hide all sorts of things within the BuddyPress interface rather than unhooking functions. I find that it more quickly and flexibly accommodates my clients’ changing desires. Today I needed to add a css body class for group moderators and admins. The goal was to hide the “Admin” button for…
Read More