BuddyPress

how to unzip using command line or terminal

How to Zip a Folder Using Terminal or Command Line

By Toby Cryns / September 3, 2020 / Comments Off on How to Zip a Folder Using Terminal or Command Line

Here’s a step-by-step guide to zipping How to Zip a Folder Using Terminal or Command Line Continue Reading How to Zip a Folder Using Terminal or Command Line

Read More

BuddyPress Actions Debugging Cheatsheet

By Toby Cryns / November 25, 2013 / Comments Off on BuddyPress Actions Debugging Cheatsheet

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… Continue Reading BuddyPress Actions Debugging Cheatsheet

Read More

bp-custom.php vs. functions.php

By Toby Cryns / May 14, 2012 /

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… Continue Reading bp-custom.php vs. functions.php

Read More

CSS Body Class for BuddyPress Group Moderators and Admins

By Toby Cryns / May 8, 2012 / Comments Off on CSS Body Class for BuddyPress Group Moderators and Admins

I 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… Continue Reading CSS Body Class for BuddyPress Group Moderators and Admins

Read More

More BuddyPress Conditional Tags

By Toby Cryns / May 7, 2012 / Comments Off on More BuddyPress Conditional Tags

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… Continue Reading More BuddyPress Conditional Tags

Read More