dashboard_recent_drafts_query_args WordPress Filter Hook
The dashboard_recent_drafts_query_args hook allows you to modify the query arguments used when retrieving the most recent drafts from the WordPress database. This can be useful if you want to limit the drafts shown to those from a specific author or time period.
apply_filters( 'dashboard_recent_drafts_query_args', array $query_args ) #
Filters the post query arguments for the ‘Recent Drafts’ dashboard widget.
Parameters
- $query_args
(array)The query arguments for the 'Recent Drafts' dashboard widget.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |