首页 WordPress函数大全 get_editable_user_ids()

get_editable_user_ids()

2020-05-01 / 3169阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

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

Gets the IDs of any users who can edit posts.

描述

参数

$user_id

(int)
(Required)
User ID.

$exclude_zeros

(bool)
(Optional)
Whether to exclude zeroes.

Default value: true

返回

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

大家谈论
    我的见解