Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
You should be able to add to the allowed tags array like so:
function fred_whitelist_tags_in_activity( $allowedtags ) {
$allowedtags['a']['target'] = array();
return $allowedtags;
}
add_filter( 'bp_activity_allowed_tags', 'fred_whitelist_tags_in_activity' );
You may want to do an add_filter / remove_filter in your plugin so that you don’t open up the allowed tags for other activity items.