bp_blogs_delete_new_blog_activity_for_site( int $blog_id, $user_id )
Deletes the ‘new_blog’ activity entry when a site is deleted.
Description
Parameters
- $blog_id
-
(Required) Site ID.
Source
File: bp-blogs/bp-blogs-activity.php
function bp_blogs_delete_new_blog_activity_for_site( $blog_id, $user_id = 0 ) { $args = array( 'item_id' => $blog_id, 'component' => buddypress()->blogs->id, 'type' => 'new_blog' ); /** * In the case a user is removed, make sure he is the author of the 'new_blog' activity * when trying to delete it. */ if ( ! empty( $user_id ) ) { $args['user_id'] = $user_id; } bp_blogs_delete_activity( $args ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.