Using the permalink for an activity “View” link
-
So, I’m creating custom activity types using the `bp_activity_add` function. Currently installed: Buddypress 1.2.4.1. This question is about the “View” link next to an activity in a user’s activity stream. I don’t want it to link to the activity detail page – instead, I want it to link to my custom component. Instead of linking to http://localhost/activity/p/id it should link to http://localhost/mycomponent/id
I see in the `bp_activity_get_permalink` that several activity types are hardcoded as returning the permalink (new_blog_post, new_blog_comment, etc). while the rest link to /activity/p/id. I *could* add my activity type to this hardcoded list. But I’d rather not. How can I instruct Buddypress to use the permalinks for my custom activities without hacking the `bp_activity_get_permalink` function?
- The topic ‘Using the permalink for an activity “View” link’ is closed to new replies.