Core Function
View Source on Trac ↗ get_editable_user_ids()
get_editable_user_ids( mixed $user_id, mixed $exclude_zeros = true, mixed $post_type = 'post' ) Gets the IDs of any users who can edit posts.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $user_id int | User ID. Required |
| $exclude_zeros bool | Optional. Whether to exclude zeroes. Default true. |
Return Value
(array)
Array of editable user IDs, empty array otherwise.
Function Information
Source File
wp-admin/includes/deprecated.php
Advertisement