PHPackages                             municipio/wp-plugin-modularity - 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. municipio/wp-plugin-modularity

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

municipio/wp-plugin-modularity
==============================

Modular component system for WordPress

2025.12.0(6mo ago)0506↑231.3%2GPL-2.0-or-laterPHPPHP ^8.0

Since Oct 28Pushed 6mo agoCompare

[ Source](https://github.com/municipio-se/wp-plugin-modularity)[ Packagist](https://packagist.org/packages/municipio/wp-plugin-modularity)[ RSS](/packages/municipio-wp-plugin-modularity/feed)WikiDiscussions v25.x Synced today

READMEChangelogDependencies (7)Versions (4)Used By (2)

Modularity Plugin
=================

[](#modularity-plugin)

This plugin is a [Municipio LTS](https://github.com/municipio-se/municipio-lts)version of Helsingborg stad's [Modularity plugin](https://github.com/helsingborg-stad/Modularity).

Fork Base
---------

[](#fork-base)

This LTS fork is based on upstream tag [`6.16.5`](https://github.com/helsingborg-stad/Modularity/tree/6.16.5), commit [`142405e`](https://github.com/helsingborg-stad/Modularity/commit/142405e5921582cbcd6ae12bab07bd171924e6fe).

Changes in this Fork
--------------------

[](#changes-in-this-fork)

This LTS version includes significant security enhancements and feature improvements. Critical security fixes include AJAX nonce verification, sanitization of sidebar options and module fields, protection against host header injection vulnerabilities, and XSS prevention through proper output escaping.

New features include WebP image format support, MediaFlow video integration, and text box color customization options. The posts module has been enhanced with better filtering capabilities, archive link visibility controls, and support for rendering posts as template elements. Manual input modules now support proper link fields and improved accessibility with aria-describedby attributes.

Search functionality has been improved with better Elasticsearch indexing, fixed total count display, and prevention of hidden modules appearing in results. The plugin now properly handles translations when installed as an MU plugin and includes numerous accessibility improvements including removal of invalid aria-labelledby attributes.

Module management has been enhanced with submenu support for single post modules, improved sidebar handling, and fixes for module placement issues. The codebase includes performance optimizations such as preventing unnecessary queries with empty includes and proper dependency management.

New WordPress Hooks
-------------------

[](#new-wordpress-hooks)

This fork adds extensive WordPress hooks for enhanced customization:

**Filters:**

- `Modularity/Module/Posts/TemplateController/{$template}` - Modify posts module template controller
- `Modularity/Module/Posts/archiveUrl` - Customize posts module archive URL
- `Modularity/Module/Template` - Modify module templates
- `Modularity/Module/Hero/imageSize` - Control hero module image size
- `Modularity/Display/mod-video/pre_getEmbedMarkup` - Pre-process video embed markup
- `Modularity/Module/Posts/Helper/pre_getPosts` - Pre-process posts retrieval
- `Modularity/Module/Posts/Helper/getPosts` - Modify retrieved posts
- `Modularity/Display/BeforeModule::widthClass` - Control module width classes
- `Modularity/Display/modules` - Modify displayed modules
- `Modularity/Display/pre_outputModule` - Pre-process module output
- `Modularity/Module/ManualInput/data/item` - Modify manual input item data

**Actions:**

- `Modularity/Editor/getModule` - Hook into module editor retrieval

Installation
------------

[](#installation)

1. Install the package: ```
    composer require municipio/wp-plugin-modularity
    ```
2. Activate the plugin in WordPress.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance68

Regular maintenance activity

Popularity15

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor3

3 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 ~4 days

Total

3

Last Release

185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3590?v=4)[Tom Clark](/maintainers/whitespace)[@Whitespace](https://github.com/Whitespace)

---

Top Contributors

[![sebastianthulin](https://avatars.githubusercontent.com/u/797129?v=4)](https://github.com/sebastianthulin "sebastianthulin (441 commits)")[![NiclasNorin](https://avatars.githubusercontent.com/u/103985736?v=4)](https://github.com/NiclasNorin "NiclasNorin (323 commits)")[![Svanmark](https://avatars.githubusercontent.com/u/457482?v=4)](https://github.com/Svanmark "Svanmark (163 commits)")[![annalinneajohansson82](https://avatars.githubusercontent.com/u/232372534?v=4)](https://github.com/annalinneajohansson82 "annalinneajohansson82 (138 commits)")[![alexanderbomanskoug2](https://avatars.githubusercontent.com/u/39676080?v=4)](https://github.com/alexanderbomanskoug2 "alexanderbomanskoug2 (108 commits)")[![silvergrund](https://avatars.githubusercontent.com/u/4200504?v=4)](https://github.com/silvergrund "silvergrund (99 commits)")[![cedrikvonheiroth](https://avatars.githubusercontent.com/u/64852452?v=4)](https://github.com/cedrikvonheiroth "cedrikvonheiroth (75 commits)")[![nRamstedt](https://avatars.githubusercontent.com/u/16800993?v=4)](https://github.com/nRamstedt "nRamstedt (64 commits)")[![Muckbuck](https://avatars.githubusercontent.com/u/11438804?v=4)](https://github.com/Muckbuck "Muckbuck (46 commits)")[![jeanfredrik](https://avatars.githubusercontent.com/u/8242740?v=4)](https://github.com/jeanfredrik "jeanfredrik (42 commits)")[![thorbrink](https://avatars.githubusercontent.com/u/1064724?v=4)](https://github.com/thorbrink "thorbrink (33 commits)")[![faejr](https://avatars.githubusercontent.com/u/752642?v=4)](https://github.com/faejr "faejr (28 commits)")[![ergr1001](https://avatars.githubusercontent.com/u/97021637?v=4)](https://github.com/ergr1001 "ergr1001 (17 commits)")[![RuslanaLogosha](https://avatars.githubusercontent.com/u/63247495?v=4)](https://github.com/RuslanaLogosha "RuslanaLogosha (15 commits)")[![mikael102030](https://avatars.githubusercontent.com/u/184387911?v=4)](https://github.com/mikael102030 "mikael102030 (15 commits)")[![malinkytta](https://avatars.githubusercontent.com/u/113056103?v=4)](https://github.com/malinkytta "malinkytta (14 commits)")[![mikael-stromgren](https://avatars.githubusercontent.com/u/8775561?v=4)](https://github.com/mikael-stromgren "mikael-stromgren (13 commits)")[![Tsubarah](https://avatars.githubusercontent.com/u/67978743?v=4)](https://github.com/Tsubarah "Tsubarah (11 commits)")[![osandell](https://avatars.githubusercontent.com/u/83674246?v=4)](https://github.com/osandell "osandell (10 commits)")[![MegaBeth](https://avatars.githubusercontent.com/u/8707034?v=4)](https://github.com/MegaBeth "MegaBeth (8 commits)")

### Embed Badge

![Health badge](/badges/municipio-wp-plugin-modularity/health.svg)

```
[![Health](https://phpackages.com/badges/municipio-wp-plugin-modularity/health.svg)](https://phpackages.com/packages/municipio-wp-plugin-modularity)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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