dashboard_recent_drafts_query_args filter-hookWP 4.4.0

Filters the post query arguments for the 'Recent Drafts' dashboard widget.

Usage

add_filter( 'dashboard_recent_drafts_query_args', 'wp_kama_dashboard_recent_drafts_query_args_filter' );

/**
 * Function for `dashboard_recent_drafts_query_args` filter-hook.
 * 
 * @param array $query_args The query arguments for the 'Recent Drafts' dashboard widget.
 *
 * @return array
 */
function wp_kama_dashboard_recent_drafts_query_args_filter( $query_args ){

	// filter...
	return $query_args;
}
$query_args(array)
The query arguments for the 'Recent Drafts' dashboard widget.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_dashboard_recent_drafts()
dashboard_recent_drafts_query_args
wp-admin/includes/dashboard.php 619
$query_args = apply_filters( 'dashboard_recent_drafts_query_args', $query_args );

Where the hook is used in WordPress

Usage not found.