Sorry for a link-only answer, but this might help out. I was looking at this method the other day to try to solve a problem:
https://codex.buddypress.org/developer/function-examples/bp_notifications_add_notification/
Related Posts:
- Buddypress activity id
- Can’t get buddypress notifications in front-end; why do I get this error?
- How to show all posts by author on buddypress profile with navigation
- Display password protected posts to logged in users
- Summary of Posts by an User
- filter buddypress users posts by user ‘xprofile’ custom fields
- How to automatically convert a form with HTML link into post
- How can I locate the single buddypress forum post template? [closed]
- How do I check if I linked to a post before I delete it?
- disable password protected page for logged users
- Dynamically update post title in admin page
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- duplicate posts when trying to update a post using the wp_insert_post.
- Add custom field to all posts in specific category
- Hiding by default specific post status on backend list?
- How to edit layout of a particular post format?
- “Uncaught SyntaxError: Unexpected token
- Displaying Page Title on index.php
- Detect Post Type when publish_post is ran
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- Pull posts from another wordpress install on same server
- How can I get all posts data from within a paginated search result?
- Syndicated Posts when Updated Lose HTML tags
- How to insert current date/time in the content of a post?
- How to automate filing a form as a user
- WP rest api returns 404 only when author param is used
- I want to query posts in monthly basis
- Encrypt / Decrypt Post Title and Details
- Full Width Main Post
- Posts vs. Pages
- Limiting the number of posts in WP_Query leads to unexpected result
- how to set beforsend option in wordpress ajax methods
- Plain permalinks not working!
- Guest Author – How to display posts on /author/ archive page
- How to add pagination in between post and comments?
- Posts not showing on page
- Nothing Found error when creating new posts – how to correct this?
- Redirection not working in this front end post submission form?
- Add Word Limit to Posts
- Display multiple custom taxonomy values on single custom post types page?
- How to Programmatically add an empty Block to every post on wordpress site?
- Underscores Theme Unit Testing – Catching Untitled Posts
- Pulling in post category and children within category
- Is Hfeed class for all pages needed
- get query() without post content?
- Custom order for Mysql array
- posts_per_page option limits the number of Gallery items
- show custom post type category dropdown sorting result on same page
- how can i allow users to view their own pending posts in a front-end page
- How to make different custom post layouts?
- Number of displayed posts
- Add custom text automatically on each post
- What date to use as a post date? date_gmt or modified_date_gmt
- Saving Post Data in Another Database
- singular posts using archive styling
- My Custom Post Type Still Using index.php
- How can I tell if a post has been published at least once?
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- How to get the form code from the edit page of a specific post?
- Send email for pending post
- Add simple field column to the posts screen
- WP_Query custom field pass the post id
- Get the post id from a plugin
- change the post time on multiple posts
- Making posts permalinks consistent numbers
- How to show category based post in home page?
- Locally change the font family [closed]
- WordPress single.php different layouts projects / posts
- WordPress Post via e-mail writes a random string for the post body
- YARPP php question
- Add text and change style to post programmatically depending on category
- Permanently deleted posts still exist
- WP_Query outputs wrong post in custom post type
- Export post another site
- Deleted page still shows and is showing posts archive
- How to show post views shortcode data for each post on Posts List Page?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Related Customs posts
- Add in the url attachment loop the wp_link_pages of the post
- Couldn’t view individual post that were in my website
- Add Categories To Custom Post
- Display post on main page with thumbnail
- Get the category of post
- Display Posts by Categories
- Custom Single Post Type not referring to single-post-type.php File
- Problem with jQuery in post body?
- Custom template for different post types
- index.php is only displaying current month’s posts?
- prevent same wordpress post title
- Remove duplicated posts in the loop if post has more than one category
- “Current” class on a singular page menu item with custom post types?
- get next/previous post name
- Get image paths from RSS feeds
- How do I display the next 3 posts in the sidebar?
- 2 tick boxes appearing below comments
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- Issue with wordpress pagination: last 2 posts show again on second page
- How can I display these posts in ascending order?
- Is there any point to using wp_unique_post_slug?
- Polylang – display one post into 3 categories with different lang [closed]