# Universal WP Plugin — CodebyLiam

Source: https://codebyliam.com/portfolio/universal-wp-plugin/

[← All work](https://codebyliam.com/portfolio/work/)

wordpress· 2024

# Universal WP Plugin

Reusable WordPress plugin that standardizes integrations and admin utilities across multiple client sites in the NewstyleDirect ecosystem. One package replaces copy-pasted mu-plugins and one-off theme hacks.

Plugin author

[Visit live site](https://github.com/imtbndev/newstyledirect-universal-wp-plugin) [View repository →](https://github.com/imtbndev/newstyledirect-universal-wp-plugin)

[![Universal WP Plugin illustrative product cover](https://codebyliam.com/portfolio/projects/universal-wp-plugin-product-cover.webp)](https://codebyliam.com/portfolio/projects/universal-wp-plugin-product-cover.webp)

Illustrative cover artwork. Original product screenshots appear below.

## Technology

- WordPress

- PHP

- REST API

- Composer

## The problem

Several WordPress properties duplicated the same custom logic — shipping helpers, admin tweaks, and API bridges — leading to drift and painful multi-site updates. A fix on one storefront did not guarantee the same behavior on another. Onboarding a new site meant re-scoping which snippets were "canonical" and which were stale forks buried in old themes.

## The solution

Packaged shared functionality into one versioned plugin with clear hooks and configuration. Sites opt in via Composer or standard WP install; fixes ship once and roll out consistently. Open-sourced on GitHub for transparency and reuse. REST bridges and admin utilities live behind documented hooks so themes stay presentation-focused. Composer installs give deterministic versions in CI; standard WP install remains supported for hosts without Composer. The plugin is the integration surface the internal SvelteKit tool and WooCommerce store both rely on.

## Screenshots

- [![Universal WP Plugin GitHub repository](https://codebyliam.com/portfolio/projects/universal-wp-plugin-repo.webp)](https://codebyliam.com/portfolio/projects/universal-wp-plugin-repo.webp)

Open-source plugin README and release history on GitHub

- [![Universal WP Plugin repository and admin integration](https://codebyliam.com/portfolio/projects/universal-wp-plugin.webp)](https://codebyliam.com/portfolio/projects/universal-wp-plugin.webp)

Plugin architecture shared across client WordPress installs

[← NewstyleDirect](https://codebyliam.com/portfolio/newstyledirect/) [Migration CI →](https://codebyliam.com/portfolio/migration-ci/)
