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.


Top ↑

Source

File: wp-admin/includes/dashboard.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.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.