Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Using the permalink for an activity “View” link


Roger Coathup
Participant

@rogercoathup

@powers1

Yes, the display of the activity entries is one of the most annoying / difficult things about theming BuddyPress – too much UI information is embedded and fixed in the core.

The best approach I can see for your issue is to hook a function onto the bp_activity_permalink filter.

Your function would have to check if the activity was your new component type, and if so, strip out the permalink info from the string (PHP string hacking), and insert a revised permalink based on your requirement.

Skip to toolbar