wp_sitemaps_posts_pre_url_list

过滤钩子


参数
  • (array[]|null)
    $url_list
    The URL list. Default null.
    Required:
  • (string)
    $post_type
    Post type name.
    Required:
  • (int)
    $page_num
    Page of results.
    Required:
定义位置
  • wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
    , line 87
引入
5.5.0
弃用

在生成文章的URL列表之前过滤它。

返回一个非空值将有效地缩短生成过程,而返回该值。

$url_list = apply_filters(