bbp_remove_moderator( int $object_id, int $user_id, string $object_type = 'post' )

Remove a moderator user ID from an object


Description Description


Parameters Parameters

$object_id

(Required) Traditionally a post ID

$user_id

(Required) User ID

$object_type

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

Default value: 'post'


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/users/capabilities.php

function bbp_remove_moderator( $object_id = 0, $user_id = 0, $object_type = 'post' ) {
	return bbp_remove_user_from_object( $object_id, $user_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.