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 Description


Parameters Parameters

$blog_id

(Required) Site ID.


Top ↑

Source 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.