bp_activity_comment_content

  • apply_filters( 'bp_activity_comment_content', $content )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-functions.php :: Trac Source Line: 940
      	// Check to see if the parent activity is hidden, and if so, hide this comment publically.
      	$activity = new BP_Activity_Activity( $activity_id );
      	$is_hidden = ( (int)$activity->hide_sitewide ) ? 1 : 0;
      
      	// Insert the activity comment
      	$comment_id = bp_activity_add( array(
      		'id' => $id,
      		'action' => apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment', 'buddypress' ), bp_core_get_userlink( $user_id ) ) ),
      		'content' => apply_filters( 'bp_activity_comment_content', $content ),
      		'component' => $bp->activity->id,
      		'type' => 'activity_comment',
      		'user_id' => $user_id,
      		'item_id' => $activity_id,
      		'secondary_item_id' => $parent_id,
      		'hide_sitewide' => $is_hidden
      	) );
      
      	// Send an email notification if settings allow
      	bp_activity_new_comment_notification( $comment_id, $user_id, $params );
      
    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-template.php :: Trac Source Line: 1640
      	 * @uses apply_filters() To call the 'bp_activity_comment_content' hook
      	 *
      	 * @return string $content The content of the current activity comment
      	 */
      	function bp_get_activity_comment_content() {
      		global $activities_template;
      
      		$content = apply_filters( 'bp_get_activity_content', $activities_template->activity->current_comment->content );
      
      		return apply_filters( 'bp_activity_comment_content', $content );
      	}
      
      /**
       * Echoes the activity comment count
       *
       * @since 1.2.0
       *
       * @uses bp_activity_get_comment_count()
       */
      function bp_activity_comment_count() {
      

Comments are closed.