Generic filters
Automatic updates Yes
Version 5.1.1
Updated on
Virus Total See Report

The MainWP Code Snippets Extension allows you to execute custom PHP code on your WordPress sites directly from your MainWP Dashboard. This powerful tool helps you manage and deploy code snippets across multiple sites, enhancing functionality and saving time.

How to download MainWP Code Snippets Extension

Unlimited Access

Subscribe for only €10.90

Or

Get this product only with unlimited updates

Already included languages : EN, DE, ES, FR, NL, BR

We are not affiliated with MainWP Code Snippets Extension nor its developers or owners. Please read the full disclaimer in footer.

HOW IT WORKS

Auto updates with Club WPress plugin

Check how to install and update your WordPress plugins and themes in ONE CLICK directly from your Dashboard.

ClubWordPress Updater Plugin

MainWP Code Snippets Extension Core Features

  • Centralized Management: Manage code snippets across multiple WordPress sites from a single dashboard.
  • Custom Code Snippets: Create and execute custom PHP code snippets.
  • Bulk Operations: Apply code snippets to multiple sites simultaneously.
  • Execution Control: Control when and where code snippets are executed (e.g., front-end, back-end).
  • Snippet Library: Access a library of pre-made code snippets for common tasks.
  • Backup and Restore: Backup and restore code snippets to ensure data safety.
  • Logging and Debugging: Log snippet execution and debug issues easily.
  • Security: Securely manage and execute code snippets without compromising site security.
  • Version Control: Maintain version control for code snippets to track changes over time.
  • Integration: Seamlessly integrates with the MainWP Dashboard for streamlined management.

List of improvements in MainWP Code Snippets Extension version 5.1.1

  • = 5.1.1 6-16-2026 =
  • Fixed: Corrected the Code Snippets table installer to always define the auto-increment ID as a primary key.
  • = 5.1 6-8-2026 =
  • Security: Improved code snippet database handling with prepared queries, sanitized values, and stricter user scoping.
  • Security: Strengthened AJAX input and output handling to improve protection against malformed or unsafe requests.
  • Fixed: Corrected formatting of default snippet code.
  • Fixed: Ensured default snippet descriptions and data are properly migrated during upgrades.
  • Added: Code folding UI and fold keymap support.
  • Added: Autocompletion and automatic bracket closing in the code editor.
  • Added: Natural Tab indentation support in the code editor.
  • Added: PHP pre-save syntax validation to help catch common syntax errors before saving snippets.
  • Added: Added a new clients column to the Code Snippets database table to support client-based snippet organization.
  • Updated: Reworked the snippet editor layout with a cleaner, more modern interface.
  • Updated: Moved snippet settings above the code editor for easier access while editing snippets.
  • Updated: Compacted snippet action buttons to reduce visual clutter in the editor area.
  • Updated: Replaced the snippet type radio buttons with a pill-style selector for a clearer editing experience.
  • Updated: Improved the saved snippets table by combining snippet titles and descriptions into a single, more readable column.
  • Updated: Replaced plain text snippet type indicators with colored labels for better visibility in the saved snippets table.
  • Updated: Refined multiple text strings for clearer and more consistent wording.
  • Updated: Improved snippet options handling, selection normalization, and snippet type validation for better reliability.
  • Updated: Improved snippet run UI rendering for a cleaner and more consistent user experience.
  • Updated: Replaced the legacy CodeMirror 5 editor with a new CodeMirror 6 bundle.
  • Updated: Improved internal utility handling with a safer rand_string method and a more user-friendly time_elapsed_string helper.
  • Dev: Refactored core database methods, including install, update_codesnippet, get_codesnippet_by, and remove_codesnippet, for safer and more consistent data handling.
  • Dev: Refactored the extension structure with clearer return semantics, improved docblocks, singleton patterns, and updated build files for better maintainability.
  • = 5.0.4 11-28-2024 =
  • Fixed: An issue with saving the snippets table state.
  • Added: Localization support.
  • Updated: Removed excessive navigation menu on the extension page.
  • = 5.0.3 6-25-2024 =
  • Fixed: An issue with sorting snippets table by the last modified date
  • = 5.0.2 6-18-2024 =
  • Fixed: An issue with saving new snippets duplicates
  • = 5.0.1 5-29-2024 =
  • Updated: Compatibility with the latest DataTables library version
  • Updated: CodeMirror library to the latest version
  • = 5.0 2-27-2024 =
  • Updated: MainWP 5.0 compatibility
  • = 4.0.3 12-7-2022 =
  • Preventative: Multiple security improvements
  • = 4.0.2 9-12-2022 =
  • Added: Accordion functionality to the sidebar sections
  • Added: Responsive mode to the snippets table
  • Updated: CodeMirror library
  • Updated: Sidebar layout on the execute snippet page
  • = 4.0.1 9-10-2020 =
  • Updated: MainWP Dashboard 4.1 compatibility
  • = 4.0 8-27-2019 =
  • Updated: extension UI/UX redesign
  • Updated: support for the MainWP 4.0
...
>

Join Club WPress Now !

Get access to 19506 products for only €10,90 per month.

JOIN NOW

Reviews