How to get a list of BuddyPress' actions.

As part of research for a new version of my Achievements plugin for BuddyPress, I need a list of all the BuddyPress action names.

For non-developers, actions are the hooks that WordPress & BuddyPress launches at specific points during execution, or when specific events occur. This allows plugin developers to hook into these events and do whatever they want.

It took me a while, but here’s how you can use the terminal (on Mac or Linux) to find all BuddyPress’ actions.

grep -r -h "do_action( '[aA0-zZ9+]*' )" . | awk -F "['']" '{print $2}' | uniq