Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding a second element for posting with an activity.


gabrielcrowe
Member

@gabrielcrowe

I think this is what i want:

https://buddypress.org/forums/topic/extending-activity-how-to-store-additional-info

And i’v implimented a simple plugin:

function add_trackmeta_to_activity( $content, $user_id, $activity_id ) {

bp_activity_update_meta( $activity_id, ‘trackmd5’, md5($_POST[‘trackstr’]) );

}

add_action( ‘bp_activity_posted_update’, ‘add_trackmeta_to_activity’, 10, 3 );

And it does not crash, or complain, but where does my data go? and how can i access it in my templates?

Skip to toolbar