wp_sitemaps_users_query_args хук-фильтр . WP 5.5.0
Filters the query arguments for authors with public posts.
Allows modification of the authors query arguments before querying.
Использование
add_filter( 'wp_sitemaps_users_query_args', 'filter_function_name_8310' ); function filter_function_name_8310( $args ){ // filter... return $args; }
- $args(массив)
- Array of WP_User_Query arguments.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_sitemaps_users_query_args
wp-includes/sitemaps/providers/class-wp-sitemaps-users.php 153-159
$args = apply_filters( 'wp_sitemaps_users_query_args', array( 'has_published_posts' => array_keys( $public_post_types ), 'number' => wp_sitemaps_get_max_urls( $this->object_type ), ) );