Core Function
View Source on Trac ↗ wp_edit_posts_query()
wp_edit_posts_query( mixed $q = false ) Runs the query to fetch the posts for listing on the edit posts page.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | false) $q Optional. Array of query variables to use to build the query. Defaults to the `$_GET` superglobal. Required |
Return Value
(string[])
An array of all the statuses for the queried post type.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement