dashboard_recent_posts_query_args filter-hookWP 4.2.0

Filters the query arguments used for the Recent Posts widget.

Usage

add_filter( 'dashboard_recent_posts_query_args', 'wp_kama_dashboard_recent_posts_query_args_filter' );

/**
 * Function for `dashboard_recent_posts_query_args` filter-hook.
 * 
 * @param array $query_args The arguments passed to WP_Query to produce the list of posts.
 *
 * @return array
 */
function wp_kama_dashboard_recent_posts_query_args_filter( $query_args ){

	// filter...
	return $query_args;
}
$query_args(array)
The arguments passed to WP_Query to produce the list of posts.

Changelog

Since 4.2.0 Introduced.

Where the hook is called

wp_dashboard_recent_posts()
dashboard_recent_posts_query_args
wp-admin/includes/dashboard.php 986
$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );

Where the hook is used in WordPress

Usage not found.