#6661 closed enhancement (fixed)
bp_activity_comment_posted hook documentation
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.4 | Priority: | low |
Severity: | minor | Version: | 2.3.3 |
Component: | Core | Keywords: | |
Cc: |
Description
/** * Fires near the end of an activity comment posting, before the returning of the comment ID. * * @since 1.2.0 * * @param int $comment_id ID of the newly posted activity comment. * @param array $r Array of parsed comment arguments. * @param int $activity ID of the activity item being commented on. */ do_action( 'bp_activity_comment_posted', $comment_id, $r, $activity );
The docs mentions $activity
is type int
but it's actually an object of type BP_Activity_Activity
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 10270: