Skip to:
Content

BuddyPress.org

Changeset 12294


Ignore:
Timestamp:
11/27/2018 03:35:12 PM (20 months ago)
Author:
boonebgorges
Message:

Pass activity ID to bp_activity_add action.

Props drywallbmb.
Fixes #7988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-functions.php

    r12286 r12294  
    19201920     *
    19211921     * @since 1.1.0
    1922      *
    1923      * @param array $r Array of parsed arguments for the activity item being added.
    1924      */
    1925     do_action( 'bp_activity_add', $r );
     1922     * @since 4.0.0 Added the `$activity_id` parameter.
     1923     *
     1924     * @param array $r           Array of parsed arguments for the activity item being added.
     1925     * @param int   $activity_id The id of the activity item being added.
     1926     */
     1927    do_action( 'bp_activity_add', $r, $activity->id );
    19261928
    19271929    return $activity->id;
Note: See TracChangeset for help on using the changeset viewer.