BBP_BuddyPress_Activity::delete_activity( array $args = array() )

Wrapper for deleting bbPress actions from BuddyPress activity stream


Description Description


Parameters Parameters

$args

(Optional) Array of arguments for bp_activity_add()

Default value: array()


Top ↑

Return Return

(int) Activity ID if successful, false if not


Top ↑

Source Source

File: includes/extend/buddypress/activity.php

	public function delete_activity( $args = array() ) {

		// Default activity args
		$activity = bbp_parse_args( $args, array(
			'item_id'           => false,
			'component'         => $this->component,
			'type'              => false,
			'user_id'           => false,
			'secondary_item_id' => false
		), 'delete_activity' );

		// Delete the activity
		bp_activity_delete_by_item_id( $activity );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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