I want to add a custom text field in the BuddyPress activity form and save it. I can add it with this code:
add_action ( "bp_after_activity_post_form", 'my_test_function' );
function my_test_function(){
echo '<div id="tags-content">
<input type="text" name="tags" value="" />
</div>';
}
How can I save it? I'm trying this, but it never goes to it.
add_action('bp_activity_after_save', 'where_activity_from', 10, 3);
function where_activity_from( $activity ) {
echo "test";
//die;
}