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
Edward de Leau 9:06 pm on February 18, 2010 Permalink |
When I activated your plugin none of the “javascript” option in the admin area worked anymore e.g. dragging of widgets, the “screen” button at the top and so on. I took me some to figure out what it exactly was. So I just wanted to share this with you.
DJPaul 10:09 pm on February 18, 2010 Permalink |
Hi Edward
Do you mean Welcome Pack? If so are you able to try version 1.63 and see if problem still exists?
Tom 9:02 pm on March 1, 2010 Permalink |
Will you update the Achievements plugin for Buddypress 1.2?
DJPaul 9:20 pm on March 1, 2010 Permalink |
Hi Tom
Yes, I am working a new version currently. I’m rewriting big chunks of functionality rather than just updating for BP 1.2, so it looks like it will be a few weeks until I have a beta ready.
Tom 9:07 pm on March 3, 2010 Permalink
Appreciate the reply! Very good to hear it, can’t wait!
AD7six 1:20 pm on April 20, 2010 Permalink |
Hi Paul,
Is your achievements plugin source in a svn/git repo somewhere? I’ve been writing something very similar – well, almost identical – and I’ll probably merge the two. I’ve already been looking at fixing the reference to deprecated/removed buddy press functions.
Cheers,
AD
Paul Gibbs 9:30 pm on April 20, 2010 Permalink |
It is, but the current trunk is pretty much blank as I’m merging and re-writing parts locally, so not much use to you at the moment.
http://svn.dangerous-minds.com/djpaul/achievements/
AD7six 10:23 am on April 26, 2010 Permalink |
Paul,
Cool – do you have an eta or a todo list or whatever? I can lend a hand if I know what direction you’re going in.
AD
Paul Gibbs 12:23 pm on April 26, 2010 Permalink |
Sounds great — as soon as I finish up my current client projects, i’m going to dive in and focus only on Achievements, so I’ll do a post when that happens to update.