bp_activity_add not working
-
Ok so here is my code for adding an activity feed on the submission of a form i have. NOthing happens what so ever on the form submission. Can anyone help?
Im using wordpress 3.5 and buddpress version 1.6.2
$project_link = 'http://www.example.com/member/'.$user_name.'/portfolio/view/?project='.$project_id.''; $params = array( 'action' => 'new-project', 'content' => 'here is a new activity', 'primary_link' => $project_link, 'component' => 'my_component', 'type' => 'my_type', 'user_id' => $bp->loggedin_user->id, 'item_id' => $bp->displayed_user->id ); do_action( 'bp_activity_add', $params );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘bp_activity_add not working’ is closed to new replies.