WordPress plugin intelligence profile

4WP Style Switcher

Apply theme.json style variations per page or let visitors switch styles on the frontend (FSE block themes).

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.0.1
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.4 · PHP 7.4
Directory statusactive
Last directory update14 Jun 20264mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records 4WP Style Switcher version 1.0.1 as active, updated 4mo ago and tested up to WordPress 7.0.

Overview

About this plugin

Demo

json ).

dev. 4WP is our project brand; the letters “WP” appear only as part of that brand name, not as a reference to WordPress. This plugin is not affiliated with, endorsed, or sponsored by WordPress.

com/4wpdev/4wp-style-switcher

Development

Human-readable PHP source is in the public GitHub repository above. php when vendor/ is absent). No npm build step — front-end scripts ship as plain JS in assets/.

json

The demo site Style Switcher uses Twenty Twenty-Five: About, Morning, Afternoon, and Evening pages with per-page styles, A/B light vs dark, a bottom-right visitor switcher, and Light/Dark in the header and footer menus.

Page style (editor) — pick a variation for a page; optionally lock it so visitors cannot override it.

Frontend switcher — visitors choose from allowed variations; the choice is stored in localStorage and synced to a cookie for server-side rendering.

Light / Dark (navigation block) — add the Light/Dark block inside Navigation; map two variations (sun/moon icons).

A/B testing — split new visitors between two variations; daily aggregate stats monitor the traffic split.

Privacy

When the visitor switcher or A/B testing is enabled, the plugin may store the selected style variation in a browser cookie ( forwp_ss_style ) and in localStorage on the visitor device. No personal data is sent to third-party services. A/B stats are aggregated counts stored in your WordPress database.

Blocks

This plugin provides 1 block.

-

Light / Dark — menu toggle between two mapped theme style variations (sun/moon icons). Hooks (developers)

-

forwp_style_switcher_variations — filter theme variation list.

  • forwp_style_switcher_ab_assigned — after A/B cohort assignment.
  • forwp_style_switcher_analytics_track — analytics events.
  • forwp_style_switcher_ab_assignment_enabled — filter A/B assignment.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • block theme
  • dark mode
  • full site editing
  • style variations
  • theme json
  • theme.json
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 6.4 · PHP 7.4
Update activity14 Jun 20264mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.