W3cubDocs

/WordPress

apply_filters( ‘dashboard_recent_posts_query_args’, array $query_args )

Filters the query arguments used for the Recent Posts widget.

Parameters

$query_argsarray
The arguments passed to WP_Query to produce the list of posts.

Source

$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );

Changelog

Version Description
4.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/dashboard_recent_posts_query_args