dashboard_recent_posts_query_args filter-hook . WP 4.2.0
Filters the query arguments used for the Recent Posts widget.
Usage
add_filter( 'dashboard_recent_posts_query_args', 'filter_function_name_9790' ); function filter_function_name_9790( $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
dashboard_recent_posts_query_args
wp-admin/includes/dashboard.php 954
$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );