Description
Test new features safely and roll out changes to a percentage of users without touching external services or setting up extra infrastructure. Everything runs inside WordPress. No third-party accounts, no Redis, no additional servers required.
Define flags in code. Control state from the admin.
Register feature flags directly in your plugin or theme so they are version controlled and reviewable in code. Enable, disable, or gradually deploy to users from the WordPress admin without pushing new code. Progressive rollout, user targeting, and gradual deployment are all built in.
Works well for teams using trunk-based development and continuous delivery. Merge to main and control what users see from the database rather than through separate deploys.
Coming from an external feature flag service?
Myrk takes a different approach. Your codebase is the source of truth. Flags are declared with Myrk::register() in PHP and committed to your repo, and they show up in the admin automatically. The admin controls state only and does not create flags. Your flag inventory stays version controlled and peer reviewed like everything else in your codebase.
Key features
- Code-registered flags — declare with
Myrk::register()in PHP, reviewed in Git - Per-environment state — reads
wp_get_environment_type()automatically - Progressive rollout — deterministic percentage rollout, no cookies needed
- User targeting — by role, capability, user ID, or email domain
- A/B testing — deterministic hashing so the same user always sees the same variant
- Circuit breaker —
Myrk::attempt()wraps risky code with automatic fallback - Stale flag detection — visual badge for feature toggles inactive for 90 or more days
- REST API — full CRUD that powers the admin UI and CI/CD pipeline automation
- WP-CLI — manage feature flags from the command line
- No external dependencies — no Redis, no Node, no third-party service
Source Code
The compiled JavaScript in build/ is generated from source files in assets/js/ using @wordpress/scripts (webpack). Both the source and compiled files are included in the plugin zip. To rebuild the compiled assets, install Node.js dependencies with pnpm install and run pnpm build.
Development
Screenshots





Installation
- Upload the
myrk-feature-flagsdirectory to/wp-content/plugins/. - Activate the plugin in Plugins > Installed Plugins.
- Navigate to Myrk in the admin menu.
- Register your first flag in code:
Myrk::register( 'my_flag', [ 'label' => 'My Flag' ] );
FAQ
-
Does Myrk require any external services?
-
No. Myrk stores all data in your WordPress database and requires no external infrastructure.
-
What PHP version is required?
-
PHP 8.1 or higher. Myrk targets enterprise WordPress teams on modern hosting stacks.
-
How does percentage rollout work?
-
Myrk uses a deterministic CRC32 hash of the flag key and user identifier. The same user always gets the same flag state for a given percentage, with no cookies required.
-
Can I use Myrk for A/B testing?
-
Yes. The percentage rollout uses deterministic hashing so the same user always sees the same variant without cookies. Pair it with your existing analytics to track outcomes. Myrk controls the split and you measure the results.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Myrk Feature Flags” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Myrk Feature Flags” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.1
- Confirmed compatibility with WordPress 7.1.3.
- Updated development dependencies.
1.0.0
- Initial release.
