Skip to:
Content

BuddyPress.org

Changes between Version 2 and Version 3 of Ticket #6569, comment 17


Ignore:
Timestamp:
08/06/2015 10:02:11 PM (4 years ago)
Author:
modemlooper
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6569, comment 17

    v2 v3  
    88
    99```do_action( 'bp_activity_add', $r, $activity );```
     10
     11then we can do an easy hook to add the meta or process it however needed.
     12
     13```function try_add_meta( $r, $activity ) {
     14
     15        bp_activity_update_meta( $activity->ID, 'key', $r['meta'] );
     16       
     17}
     18add_action( 'bp_activity_add', 'try_add_meta', 10, 2 );```