dashboard_recent_posts_query_args
apply_filters( ‘dashboard_recent_posts_query_args’, array $query_args )
过滤器::过滤用于最近的Posts小部件的查询参数。
Filter Hook: Filters the query arguments used for the Recent Posts widget.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$query_args | (array) | 传递给WP_Query以生成帖子列表的参数。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-admin/includes/dashboard.php:936 | 1 | 0 |
dashboard_recent_posts_query_args 为WP2原创文章,链接:https://www.wp2.cn/hook/dashboard_recent_posts_query_args/