BBP_Topic_Replies_List_Table::column_bbp_reply_content( $item = '' )
Output the contents of the bbp_reply_content column
Description Description
Source Source
File: includes/admin/classes/class-bbp-topic-replies-list-table.php
public function column_bbp_reply_content( $item = '' ) {
// Define actions array
$actions = array(
'view' => '<a href="' . bbp_get_reply_url( $item->ID ) . '">' . esc_html__( 'View', 'bbpress' ) . '</a>'
);
// Prepend `edit` link
if ( current_user_can( 'edit_reply', $item->ID ) ) {
$actions['edit'] = '<a href="' . get_edit_post_link( $item->ID ) . '">' . esc_html__( 'Edit', 'bbpress' ) . '</a>';
$actions = array_reverse( $actions );
}
// Filter the reply content
$reply_content = apply_filters( 'bbp_get_reply_content', $item->post_content, $item->ID );
$reply_actions = $this->row_actions( $actions );
// Return content & actions
return $reply_content . $reply_actions;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |