‘bp_activity_add()’ doesn’t respect ‘primary_link’
-
This is the test code I”ve been using:
`bp_activity_add(
array(
‘action’ => $my_action,
‘content’ => $my_content,
‘primary_link’ => ‘http://example.com’,
‘component’ => ‘my_component’,
‘type’ => ‘my_type’,
‘user_id’ => $my_user_id,
‘item_id’ => $my_item_id
)
);`The activity is posted fine, however, the ‘Visit’ link doesn’t point to ‘http://example.com’, it’s still using the default activity permalink.
Am I doing something wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘‘bp_activity_add()’ doesn’t respect ‘primary_link’’ is closed to new replies.