PHPackages                             bonnier/wp-bonnier-sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bonnier/wp-bonnier-sitemap

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

bonnier/wp-bonnier-sitemap
==========================

A Sitemap plugin for the Willow platform

1.7.5(3y ago)02.7k[1 PRs](https://github.com/BenjaminMedia/wp-bonnier-sitemap/pulls)1MITPHPPHP &gt;=7.4

Since Nov 13Pushed 3y ago9 watchersCompare

[ Source](https://github.com/BenjaminMedia/wp-bonnier-sitemap)[ Packagist](https://packagist.org/packages/bonnier/wp-bonnier-sitemap)[ RSS](/packages/bonnier-wp-bonnier-sitemap/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (10)Versions (37)Used By (1)

WP Bonnier Sitemap
==================

[](#wp-bonnier-sitemap)

A plugin for handling sitemaps in WordPress

This plugin will monitor all public WP\_Post types and

Filters
-------

[](#filters)

This plugin makes some filters available to developers of WordPress sites, in order to customize the validation and handling of content to be processed by this plugin.

---

**WpBonnierSitemap::FILTER\_ALLOWED\_POST\_TYPES = 'sitemap\_allowed\_post\_types'**

This filter will allow you to remove or add post types that are allowed by the sitemap plugin, and therefore which post types will be listened for on changes.

```
add_filter('sitemap_allowed_post_types', function(array $postTypes) {
    // Don't handle sitemaps for the page post type.
    return array_filter($postTypes, function(string $postType) {
        return $postType !== 'page';
    });
}, 10);
```

---

**WpBonnierSitemap::FILTER\_POST\_ALLOWED\_IN\_SITEMAP = 'post\_allowed\_in\_sitemap'**

This filter will allow you to hijack the validation for whether a WP\_Post is supposed to be in the sitemap.

Default: true

```
add_filter('post_allowed_in_sitemap', function (bool $allowed, \WP_Post $post) {
    if ($post->post_type !== 'page') {
        $allowed = false;
    }
    return $allowed;
}, 10, 2);
```

---

**WpBonnierSitemap::FILTER\_POST\_TAG\_MINIMUM\_COUNT = 'post\_tag\_minimum\_count'**

This filter will allow you to define the minimum number of posts a tag needs to be attached to, for it to be included in a sitemap.

Default: 5

```
add_filter('post_tag_minimum_count', function (int $count) {
    // For SEO purposes, our sitemap cannot have less than 10 posts for tag pages.
    return 10;
}, 10);
```

---

**WpBonnierSitemap::FILTER\_USER\_MINIMUM\_COUNT = 'user\_minimum\_count'**

This filter will allow you to define the minimum number of posts a user needs to be attached to, for it to be included in a sitemap.

Default: 5

```
add_filter('user_minimum_count', function (int $count) {
    // For SEO purposes, our sitemap cannot have less than 10 posts for user pages.
    return 10;
}, 10);
```

---

**WpBonnierSitemap::FILTER\_POST\_PERMALINK = 'sitemap\_post\_permalink'**

This filter will allow you to alter the generated permalink for a post being saved.

```
add_filter('sitemap_post_permalink', function (string $permalink, \WP_Post $post) {
    return $permalink;
}, 10, 2);
```

---

**WpBonnierSitemap::FILTER\_CATEGORY\_PERMALINK = 'sitemap\_category\_permalink'**

This filter will allow you to alter the generated permalink for a category being saved.

```
add_filter('sitemap_category_permalink', function (string $permalink, \WP_Term $category) {
    return $permalink;
}, 10, 2);
```

---

**WpBonnierSitemap::FILTER\_TAG\_PERMALINK = 'sitemap\_tag\_permalink'**

This filter will allow you to alter the generated permalink for a post\_tag being saved.

```
add_filter('sitemap_tag_permalink', function (string $permalink, \WP_Term $tag) {
    return $permalink;
}, 10, 2);
```

---

**WpBonnierSitemap::FILTER\_TAG\_ALLOWED\_IN\_SITEMAP = 'tag\_allowed\_in\_sitemap'**

This filter will allow you to hijack the validation for whether a WP\_Term is supposed to be in the sitemap.

Default: true

```
add_filter('tag_allowed_in_sitemap', function (bool $allowed, \WP_Term $tag) {
    if ($tag->taxonomy !== 'post_tag') {
            $allowed = false;
        }
        return $allowed;
}, 10, 2);
```

---

**WpBonnierSitemap::FILTER\_ALLOW\_USER\_IN\_SITEMAP = 'allow\_user\_in\_sitemap'**

This filter will allow you to apply your own rules for registering the user in the sitemap table.

```
add_filter('allow_user_in_sitemap', function (bool $allowInSitemap, int $userID, \WP_User $user) {
    return $allowInSitemap;
}, 10, 3);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~0 days

Total

28

Last Release

1273d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1

1.6.5PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a3a215b5d0438fc3b691faf171722b3451ad9c7dbae257799d5e4caede6a3fe?d=identicon)[MFlor](/maintainers/MFlor)

![](https://www.gravatar.com/avatar/c85972abf129cb0d5522b069083a4084ef35c680f98642a7caa65fda3a26f23d?d=identicon)[sorenthorup](/maintainers/sorenthorup)

![](https://www.gravatar.com/avatar/42a101ed1d72b4911ddfdc734d53248150271bd5ff6a9272952beca139a0723d?d=identicon)[jonastanz](/maintainers/jonastanz)

---

Top Contributors

[![alexchessmaster](https://avatars.githubusercontent.com/u/101429685?v=4)](https://github.com/alexchessmaster "alexchessmaster (33 commits)")[![MFlor](https://avatars.githubusercontent.com/u/3704257?v=4)](https://github.com/MFlor "MFlor (23 commits)")[![madspaaskesen](https://avatars.githubusercontent.com/u/404800?v=4)](https://github.com/madspaaskesen "madspaaskesen (14 commits)")[![mrhn](https://avatars.githubusercontent.com/u/5760050?v=4)](https://github.com/mrhn "mrhn (9 commits)")[![186dk](https://avatars.githubusercontent.com/u/21238139?v=4)](https://github.com/186dk "186dk (5 commits)")[![jonastanz](https://avatars.githubusercontent.com/u/12626047?v=4)](https://github.com/jonastanz "jonastanz (4 commits)")[![GlebOlsen](https://avatars.githubusercontent.com/u/62882355?v=4)](https://github.com/GlebOlsen "GlebOlsen (2 commits)")[![alfhen](https://avatars.githubusercontent.com/u/5700924?v=4)](https://github.com/alfhen "alfhen (2 commits)")

### Embed Badge

![Health badge](/badges/bonnier-wp-bonnier-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/bonnier-wp-bonnier-sitemap/health.svg)](https://phpackages.com/packages/bonnier-wp-bonnier-sitemap)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
