Count content
wp_dashboard_countsGet counts of posts by status, users total and per role, comments by moderation state, and media files for the current WordPress site. Read-only and requires manage_options.
Instructions
Get content counts of this site (on a multisite network: the current site): for each post type shown in wp-admin, its published, draft, pending, private and trashed entries (scheduled ones are not counted); users in total and per role; comments approved, moderated (pending), spam and trash; and the number of media files with the usual status inherit (private files are not counted). Needs manage_options. Read-only; takes no arguments. The entries themselves are listed by wp_list_posts, wp_list_comments and wp_list_media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||