BuddyPress Edit activity function good practice

Looking at https://buddypress.trac.wordpress.org/browser/trunk/src/bp-activity/bp-activity-functions.php there’s several functions: Activity Meta I found bp_activity_add_meta, bp_activity_delete_meta and bp_activity_update_meta in that file, e.g. bp_activity_update_meta: // Update activity meta counts. if ( bp_activity_update_meta( $activity_id, ‘favorite_count’, $fav_count ) ) { Activities It looks like these can be updated the same way wp_insert_post can be used to update a post, by calling bp_activity_add … Read more

How can I locate the single buddypress forum post template? [closed]

Even if I’m also not quite sure if this question is related to bbPress or BuddyPress, locating (plugin-) template files might always be the same: An easy approach might be to call the body_class() in a file which is definitely active (like header.php). The output will look something like this: class=”forum-archive bbpress archive post-type-archive post-type-archive-forum … Read more