dashboard_recent_posts_query_args WordPress Filter Hook
The dashboard_recent_posts_query_args hook is used to modify the query arguments used in the WP_Query object for the "Recent Posts" section on the WordPress Dashboard. This can be used to, for example, exclude specific post types from the recent posts list.
apply_filters( 'dashboard_recent_posts_query_args', array $query_args ) #
Filters the query arguments used for the Recent Posts widget.
Parameters
- $query_args
(array)The arguments passed to WP_Query to produce the list of posts.
Source
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |