Changes between Version 2 and Version 3 of Ticket #6569, comment 17
- Timestamp:
- 08/06/2015 10:02:11 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6569, comment 17
v2 v3 8 8 9 9 ```do_action( 'bp_activity_add', $r, $activity );``` 10 11 then 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 } 18 add_action( 'bp_activity_add', 'try_add_meta', 10, 2 );```