Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6661 closed enhancement (fixed)

bp_activity_comment_posted hook documentation

Reported by: henrywright's profile henry.wright Owned by: boonebgorges's profile boonebgorges
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)

#1 @boonebgorges
9 years ago

  • Milestone changed from Awaiting Review to 2.4

#2 @boonebgorges
9 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 10270:

Fix documentation for 'bp_activity_comment_posted' hook.

Props henry.wright.
Fixes #6661.

#3 @DJPaul
9 years ago

  • Component changed from Tools - Code Documentation to Core

#4 @DJPaul
9 years ago

  • Type changed from task to enhancement
Note: See TracTickets for help on using tickets.