MainWP Code Snippets Extension changelog
Release notes for every version you can download from GPL Times, newest first.
- Latest 5.2 · 11 Nov 2026
- 9 versions
- Since Dec 2022
- 20263 versions
2 new2 improved1 fixedJoin nowShow changesHide
New
- Site picker to the Snippets tab. Select a child site to see which saved snippets apply and whether each targets the site directly, through a tag, or through its client.
- Code Snippets to the MainWP Dashboard database health check so it can flag missing tables, missing columns, and incorrect column definitions.
Improved
- Strengthened request verification when deleting snippets from child sites.
- Improved Dashboard console security by displaying child-site snippet output as plain text.
Fixed
- Database upgrades so older installations get the expected default user ID while preserving saved snippets.
- 5.1.1Join now
1 fixedJoin nowShow changesHide
Fixed
- Corrected the Code Snippets table installer to always define the auto-increment ID as a primary key.
- 5.1Join now
5 new13 improved2 fixed2 securityJoin nowShow changesHide
New
- Code folding UI and fold keymap support.
- Autocompletion and automatic bracket closing in the code editor.
- Natural Tab indentation support in the code editor.
- PHP pre-save syntax validation to help catch common syntax errors before saving snippets.
- Added a new clients column to the Code Snippets database table to support client-based snippet organization.
Improved
- Reworked the snippet editor layout with a cleaner, more modern interface.
- Moved snippet settings above the code editor for easier access while editing snippets.
- Compacted snippet action buttons to reduce visual clutter in the editor area.
- Replaced the snippet type radio buttons with a pill-style selector for a clearer editing experience.
- Improved the saved snippets table by combining snippet titles and descriptions into a single, more readable column.
- Replaced plain text snippet type indicators with colored labels for better visibility in the saved snippets table.
- Refined multiple text strings for clearer and more consistent wording.
- Improved snippet options handling, selection normalization, and snippet type validation for better reliability.
- Improved snippet run UI rendering for a cleaner and more consistent user experience.
- Replaced the legacy CodeMirror 5 editor with a new CodeMirror 6 bundle.
- Improved internal utility handling with a safer rand_string method and a more user-friendly time_elapsed_string helper.
- Refactored core database methods, including install, update_codesnippet, get_codesnippet_by, and remove_codesnippet, for safer and more consistent data handling.
- Refactored the extension structure with clearer return semantics, improved docblocks, singleton patterns, and updated build files for better maintainability.
Fixed
- Corrected formatting of default snippet code.
- Ensured default snippet descriptions and data are properly migrated during upgrades.
Security
- Improved code snippet database handling with prepared queries, sanitized values, and stricter user scoping.
- Strengthened AJAX input and output handling to improve protection against malformed or unsafe requests.
- 20245 versions
- 5.0.4Join now
1 new1 improved1 fixedJoin nowShow changesHide
New
- Localization support.
Improved
- Removed excessive navigation menu on the extension page.
Fixed
- An issue with saving the snippets table state.
- 5.0.3Join now
1 fixedJoin nowShow changesHide
Fixed
- An issue with sorting snippets table by the last modified date
- 5.0.2Join now
1 fixedJoin nowShow changesHide
Fixed
- An issue with saving new snippets duplicates
- 5.0.1Join now
2 improvedJoin nowShow changesHide
Improved
- Compatibility with the latest DataTables library version
- CodeMirror library to the latest version
- 5.0Join now
1 improvedJoin nowShow changesHide
Improved
- MainWP 5.0 compatibility
- 20221 version
- 4.0.3Join now
1 securityJoin nowShow changesHide
Security
- Preventative: Multiple security improvements