WP Manifestindependent plugin directory
manifest / editor / classact

ClassAct WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A miniplugin for acting on Additional CSS classes per-block in the WordPress Editor.

★ 20stars
29release downloads
≈10active sites
2.1.0latest · 1 year ago

Install

Download classact.zip From the 2.1.0 release on GitHub, May 3, 2025

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/0averyan/classact/releases/download/2.1.0/classact.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A lightweight WordPress plugin for visually managing CSS classes in the Block Editor.

ClassAct Demo

📦 Download

✨ Features

  • 🔖 Visual Token Management - Manipulate CSS classes as visual tokens
  • ⚡️ Quick Actions - Copy, sort, and remove classes with one click
  • 🔍 Enhanced Modal - Full-featured management with advanced sorting options
  • ⌨️ Keyboard Shortcut - Press alt + c (or option + c on Mac) to quickly access
  • 🙈 Core CSS Field Hidden - Replaces the default field in the Advanced panel

🚀 Getting Started

  1. Upload and activate the plugin
  2. Select any block in the editor
  3. Find the token field in the Advanced panel
  4. Add, remove, and manage CSS classes visually

💡 Key Features

Inspector Panel

  • Add classes by typing and pressing Enter/Space
  • Remove classes by clicking × on any token
  • Use quick actions: Copy, Sort, Clear, Manage

Modal Interface (alt+c / option+c)

  • Token Management - Add/remove with visual tokens
  • Text Editing - Edit classes directly in text area
  • Sorting Options:
    • Auto Sort (intelligent best practices)
    • Alphabetical
    • Length
    • Move block styles to end
  • Cleanup:
    • Clear custom classes
    • Clear all classes

🛠️ Developer Notes

  • Class names are validated using regex for proper CSS naming conventions
  • WordPress block style classes (is-style-*) receive special handling
  • Changes sync with the core WordPress class input field

🧪 Testing

ClassAct uses PHPUnit for testing critical plugin functionality. The test suite covers:

  • Plugin initialization and assets loading
  • Automatic update system
  • PSR-4 autoloader functionality

Running Tests

  1. Install development dependencies:

    composer install
  2. Set up the WordPress test environment (requires MySQL):

    composer run setup-local-tests
  3. Run the tests:

    composer test
  4. Generate code coverage report:

    composer run test:coverage

🔧 Customization

classact_keyboard_shortcut Filter

Customize the keyboard shortcut:

add_filter('classact_keyboard_shortcut', function($shortcut) {
    return array(
        'modifier' => 'ctrl',
        'character' => 'c',
    );
});

Valid modifiers: alt, ctrl, shift, meta (Command on Mac)

Releases

3 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
2.1.0 latest
May 3, 2025 1 year ago
classact.zip
12
Mar 16, 2025 1 year ago
classact.zip
9
Feb 8, 2025 1 year ago
classact.zip
8

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

ClassAct 2.1.0 · audited by WP Registry

No security issues found.

Audited release
2.1.0
Findings
none
Worst severity
—
Content hash
dc004fcf94da3cca16cfa1b6…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.