The Wayback Machine - https://webcf.waybackmachine.org/web/20140726154202/http://codex.bbpress.org:80/bbp_forum_row_actions/
Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_forum_row_actions

Codex Home → bbp_forum_row_actions

Description

The ‘bbp_forum_row_actions’ action is used to display content within forum topic rows for functions such as administrative shortcuts.

Where it can be found

Line 453 and 454

/includes/forums/template.php
1
2
3
function bbp_forum_row_actions() {
     do_action( 'bbp_forum_row_actions' );
}

Line 48

/templates/default/bbpress/loop-single-forum.php
1
<?php do_action( 'bbp_forum_row_actions' ); ?>

How to use it

Since this is an action, we can use add_action to hook into it.

Sample code example

1
2
3
4
5
add_action( 'bbp_forum_row_actions', 'jc_forum_row_actions' );
function jc_forum_row_actions($action) {
     $action = edit_post_link( 'Edit forum' );
     return $action;
}

This will display a link to edit each forum, if a user is logged in and able to make edits.

Note: Always remember to prefix your functions to avoid conflicts!