bbpress has a large number of callbacks attached to various hooks. I am familiar with this feature at the wordpress level but I am unable to locate where bbpress registers a large number of these callbacks. Specifically I would like to change the behaviour of the callback which is triggered via:

do_action( 'bbp_template_before_forums_loop' );

If someone could help me locate this callback so that I can change the HTML it outputs that would be greatly appreciated.


1 Answer 1


To find an attached callback, you normally can just do the following:

printf( '<pre>%s</pre>', var_export( $GLOBALS['wp_filter']['hook_name'], TRUE ) );

This should give you back an array of callbacks attached to a hook, ordered by priority (which serves as key).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.