Forums

Join
bbPress Support ForumsTroubleshootingList of filters/actions?

Info

List of filters/actions?

  1. I'm already familiar with writing plugins for WordPress but now I'm interested in writing a few plugins for bbPress. I'm trying to find a list of hooks/actions so I can get a better feel for what I have control over without altering the core files. Does such a thing exist? If not which php files should I be going through to find hooks/actions or are they all in different files?

    Cheers

  2. There's no official documentation or codex yet.
    A few people have done phpxref for bbpress but I find that kind of output fairly useless.

    If you have access to linux shell you can do a grep to get a function list in the template include like so (or install the grep for windows)

    grep -oe ^function.*\) bb-includes/template-functions.php | sort > functions.txt

    modifying that you can also get the filters/actions

    grep -oe apply\_.*\) bb-includes/template-functions.php | sort > filters.txt

    grep -oe do\_.*\) bb-includes/template-functions.php | sort > actions.txt

    If you use the grep for windows, leave out the escapes (backslashes) or it won't work.

  3. You must log in to post.