Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/08/2015 10:25:23 AM (10 years ago)
Author:
imath
Message:

When adding an activity, allow arguments to be filtered.

bp_activity_add() is using bp_parse_args() to parse the activity arguments. Adding the third arguments to bp_parse_args() will help plugin developers to edit the activity arguments before it has been saved using the bp_before_activity_add_parse_args or bp_after_activity_add_parse_args filters.

Props rogercoathup

Fixes #6293

File:
1 edited

Legend:

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

    r9834 r9853  
    16571657        'hide_sitewide'     => false,                  // Should this be hidden on the sitewide activity stream?
    16581658        'is_spam'           => false,                  // Is this activity item to be marked as spam?
    1659     ) );
     1659    ), 'activity_add' );
    16601660
    16611661    // Make sure we are backwards compatible
Note: See TracChangeset for help on using the changeset viewer.