首页 WordPress函数大全 count_many_users_posts()

count_many_users_posts()

2020-05-01 / 2874阅 / 悠然

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

count_many_users_posts( int[] $users, string|string[] $post_type = 'post', bool $public_only = false )

Number of posts written by a list of users.

描述

参数

$users

(int[])
(Required)
Array of user IDs.

$post_type

(string|string[])
(Optional)
Single post type or array of post types to check. Defaults to 'post'.

Default value: 'post'

$public_only

(bool)
(Optional)
>Default value: false

返回

(string[]) Amount of posts each user has written, as strings, keyed by user ID.

大家谈论
    我的见解