#6661 closed enhancement (fixed)
bp_activity_comment_posted hook documentation
| Reported by: | henry.wright | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | low | Milestone: | 2.4 |
| Component: | Core | Version: | 2.3.3 |
| Severity: | minor | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 10270: