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 with the updated information, and giving it an ID of the activity you want it to update
Activity Comments
That file also includes all comment related functions, but it looks like bp_activity_new_comment works the same way as wp_insert_post in that you can modify a comment by passing its ID
Related Posts:
- Add multiple custom fields to the general settings page
- Is it possible to remove the “standard” post format?
- Woocommerce add to simple product attribute programmatically [closed]
- Issue with get_theme_mod returning a blank value instead of the saved value
- How to remove row-actions from pages table?
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to fix a theme with page.php Default Template that accidentally deleted?
- How do I change parameters without changing the core
- Problem with extract() with custom shortcode
- add sidebar area to header of child theme
- How to update BuddyPress xprofile fields programmatically? [closed]
- Custom function for user register in wp?
- Automatically insert php function into post $the_content
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Theme-Config tab in admin Pannel?
- Creating loop within functions.php
- adding custom classes for tables
- Pass Shortcode Attribute to footer Script
- Customizer field value into functions.php variable
- PHP files included in functions.php don’t seem to work
- How Can I Expand the WordPress Customize window without any Plugin?
- Set quantity of woocommerce product on page visit [closed]
- wp_dropdown_categories and custom attribute
- Automatically wrap multiple images in div
- Ajax not working properly
- Which action does wp_update_user triggers?
- Include default functions and methods
- Hard-coding custom menu elements for menu manager
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- Allow Post Author to be 0 on Update
- How can I modify all existing tags while keeping the urls themselves?
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- When sale price is 0.00 show only regular price
- Unable to login using username
- Has is_archived() for sites in a multisite changed with WP 4.7?
- different style sheet for just one page template
- How to set the default avatar of buddypress avatar [closed]
- Condition OR for current user ID
- How to retrieve the current post’s generated featured image size?
- Use /prefix/postname as a slug in post_name?
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Why There Is No “get content by ID” Function
- Wp-query Order By problem
- Create custom function for hero image
- Randomizing wp_tag_cloud() in child theme
- login_headertitle is deprecated since version 5.2.0
- How to append classname to body tag if guest user
- Where do I go to edit this area? [closed]
- Replace plugin function with a custom function?
- Different favicon on different pages
- Problem with images URL after filter applying
- Function to replace comment’s accented characters before posting
- How do I pull avatar from post using BuddyPress? [closed]
- How to echo Widget Title in Custom Frontend-Template Box
- how to display a page before the home page
- loginout function customization
- The work of WordPress Function update_post
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- How to replace ACTION url from original wordpress login form?
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Modifying a WordPress Plugin
- CF7 select value get to function and reciept value from function
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- Parent category as WOOCommerce Categories widget title
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site
- Woocommerce custom calculation function
- Remove all video attachment, both files and post/postmeta from database?
- WordPress function with attribute pass to template
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Replace image attributes for lazyload plugin on image elements with specific class
- How to make an If Else on Excerpt Filter
- How to replace words in my posts and saved new words
- WordPress not performing direct update
- How to request login for user but not for bots
- functions.php / replacing div’s with new ones?
- Why does modifying my functions.php file always result in a server error
- Unhook the comment form in Buddypress
- Post variables not displaying correctly in custom function
- How can i hide content if not friend in Buddypress? [closed]
- Sessions in word press [duplicate]
- How to crop image in WordPress with aspect ratio for any size of image
- multible shortcodes (for differnt values) with one function
- Customizer cuistom CSS Priority ordre Issue
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- wp_login_form display no styled form
- Advanced Custom Fields in WP_Query: Clickable Text in List Format
- wp_update_post breaks my function
- Add custom css to specific user