bbp_get_moderator_ids( int $object_id, string $object_type = 'post' )

Get user IDs of moderators for an object


Description Description


Parameters Parameters

$object_id

(Required) Traditionally a post ID

$object_type

(Optional) Type of meta (post,term,user,comment)

Default value: 'post'


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/users/capabilities.php

function bbp_get_moderator_ids( $object_id = 0, $object_type = 'post' ) {
	return bbp_get_users_for_object( $object_id, '_bbp_moderator_id', $object_type );
}

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.