
通过Docker部署运行MariaDB数据库
apply_filters( 'wp_sitemaps_posts_show_on_front_entry', $sitemap_entry )
wp_sitemaps_posts_show_on_front_entry 是 WordPress 5 及以后版本中内置的一个过滤器,允许开发人员控制首页在 XML 网站地图中的输出。使用这个过滤器,您可以控制首页在网站地图中的输出,例如:删除首页的输出、更改首页的 URL 等。
当’show_on_front’选项等于’post’时,过滤主页的网站地图条目。
$sitemap_entry = apply_filters( 'wp_sitemaps_posts_show_on_front_entry', $sitemap_entry );