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.


Top ↑

Source

File: wp-admin/includes/dashboard.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.