dashboard_recent_posts_query_args хук-фильтр . WP 4.2.0
Filters the query arguments used for the Recent Posts widget.
Использование
add_filter( 'dashboard_recent_posts_query_args', 'filter_function_name_7649' ); function filter_function_name_7649( $query_args ){ // filter... return $query_args; }
- $query_args(массив)
- The arguments passed to WP_Query to produce the list of posts.
Список изменений
С версии 4.2.0 | Введена. |
Где вызывается хук
dashboard_recent_posts_query_args
wp-admin/includes/dashboard.php 954
$query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args );