wp_sitemaps_posts_query_args

过滤钩子


参数
  • (array)
    $args
    Array of WP_Query arguments.
    Required:
    Default:
  • (string)
    $post_type
    Post type name.
    Required:
定义位置
  • wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
    , line 213
引入
6.1.0
弃用

Filters the query arguments for post type sitemap queries.

$args = apply_filters(