BBP_User_Engagements_Meta::get_users_for_object( int $object_id, string $meta_key = '', string $meta_type = 'post' )

Get users of an object


Description Description


Parameters Parameters

$object_id

(Required) The object id

$meta_key

(Optional) The key used to index this relationship

Default value: ''

$meta_type

(Optional) The type of meta to look in

Default value: 'post'


Top ↑

Return Return

(array) Returns ids of users


Top ↑

Source Source

File: includes/common/engagements.php

	public function get_users_for_object( $object_id = 0, $meta_key = '', $meta_type = 'post' ) {
		return wp_parse_id_list( get_metadata( $meta_type, $object_id, $meta_key, false ) );
	}

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.