get_editable_user_ids

DeprecatedDeprecated

This function has been deprecated. Use get_users() instead.

SummerySummery

Gets the IDs of any users who can edit posts.

Syntax

get_editable_user_ids( int $user_id, bool $exclude_zeros = true,  $post_type = 'post' )

ParametersParameters

$user_id

(int) (Required) User ID.

$exclude_zeros

(bool) (Optional) Whether to exclude zeroes.

Default value: true

ReturnReturn

(array) Array of editable user IDs, empty array otherwise.

SourceSource

File: wp-admin/includes/deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top