bp_blogs_delete_activity( array|string $args = '' )

Delete a blog-related activity feed item.

Description

See also

Parameters

$args

(Optional) See bp_activity_delete() for complete description of arguments. The arguments listed here have different default values from bp_activity_add().

  • 'component'
    (string) Default: 'blogs'.

Default value: ''

Return

(bool) True on success, false on failure.

Source

File: bp-blogs/bp-blogs-activity.php

function bp_blogs_delete_activity( $args = '' ) {
	$r = bp_parse_args( $args, array(
		'item_id'           => false,
		'component'         => buddypress()->blogs->id,
		'type'              => false,
		'user_id'           => false,
		'secondary_item_id' => false
	) );

	bp_activity_delete_by_item_id( $r );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.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.