Whostyles Codeberg
WordPress plugin adding native support for the Whostyles V1 (Hash Protocol) specification
by Whostyles Contributors · codeberg.org/whostyles/whostyles-wordpress · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://codeberg.org/whostyles/whostyles-wordpress/archive/main.zipWhostyles WordPress Plugin
A WordPress plugin adding native support for the Whostyles V1 (Hash Protocol) specification.
This plugin allows authors to visual syndicate personal typographic and cosmetic styles across WordPress posts and comment systems safely, performantly, and without compromising the site's structural layout.
For details on the protocol itself, see the core project repository at github.com/whostyles/whostyles.
Features
- Comments Styling: Automatically parses incoming comments for Whostyle hashes, wrapping them in safe CSS container styling.
- Author Branding: Define Whostyles on a per-post or site-wide basis, outputting correct HTTP headers and
<meta>tags. - Zero Raw CSS Execution: Resolves styling exclusively using constrained CSS Custom Properties (variables) and predefined, host-enforced typography and background textures.
Development Setup
Requirements
- PHP 7.4 or higher
- Composer
Installation
- Clone this repository inside your WordPress
wp-content/plugins/directory:cd wp-content/plugins/ git clone <repo-url> whostyles - Navigate into the plugin folder and install development dependencies:
composer install(Note: Until the
whostyles/whostylescore package is available on Packagist, the core class is temporarily copied undersrc/Lib/Whostyles.phpand loaded using local Composer autoloading configuration.)
Static Analysis
Run PHPStan to verify code quality and compliance:
composer run-script phpstan
Or directly:
vendor/bin/phpstan analyse
License
This project is licensed under the GNU General Public License v3.0 (GPLv3). See LICENSE for details. This plugin is compliant with the requirements for publishing on the WordPress.org plugin directory.