Re: How to display when the User Edited His post
Apparently I have an issue today with fat fingers or bad copy/paste-itus. Try this:
`my_update_forum_post_last_edited( $post_id ) {
global $bp;
do_action( ‘bbpress_init’ );
$post_id = (int) $post_id;
if ( empty( $post_id ) )
return;
bb_update_postmeta( $post_id, ‘last_edited_date’, bp_core_current_time() );
bb_update_postmeta( $post_id, ‘last_edited_user’, $bp->loggedin_user->id );
}
add_action( ‘groups_edit_forum_post’, ‘my_update_forum_post_last_edited’ );`