BBP_User_Engagements_Term::remove_object_from_all_users( int $object_id, string $meta_key = '', string $meta_type = 'post' )

Remove an object from all users


Description Description


Parameters Parameters

$object_id

(Required) The object id

$user_id

(Required) The user id

$meta_key

(Optional) The relationship key

Default value: ''

$meta_type

(Optional) The relationship type (usually 'post')

Default value: 'post'


Top ↑

Return Return

(bool) Returns true on success, false on failure


Top ↑

Source Source

File: includes/common/engagements.php

	public function remove_object_from_all_users( $object_id = 0, $meta_key = '', $meta_type = 'post' ) {
		return wp_delete_object_term_relationships( $object_id, get_object_taxonomies( 'bbp_user' ) );
	}

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.