Black Friday35% OFFEvery plan & productAdd the code at checkout1days06hrs36min14secClaim 35% offGet it
ManageGPLNew

One dashboard for every WordPress site — update everything in one clickUpdate every WordPress site in one clickPremium plugins included

Start free5 sites free · no card
22,497 sites on auto-updatesLatest updates

MainWP Code Snippets Extension 5.2

(306)
WordPress pluginmainwp.com
  • Version5.2
  • UpdatedNov 12, 2026
  • Auto-updateYes1 year
  • File scan Clean

The MainWP Code Snippets Extension makes managing your WordPress websites a breeze. Easily add custom code snippets to multiple sites simultaneously, saving time and improving efficiency. No more repetitive tasks; a simple click, and you’re set! Plus, it keeps your site safe by letting you test snippets before going live. Perfect for anyone juggling multiple WordPress sites.

Changelog

Version 5.2Latest2 new2 improved1 fixed

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.

Key Features

  • Centralized Code Snippet Management — Add, edit, and manage PHP snippets for all your WordPress child sites from a single, intuitive MainWP Dashboard, eliminating the need to switch between individual sites.
  • Flexible Code Execution Options — Run snippets directly on child sites, retrieve data such as post counts, or modify wp-config.php files remotely, giving you unparalleled control over your WordPress environments.
  • WordPress Hardening via Code — Enhance security by disabling theme and plugin editors, blocking unwanted core updates, adjusting auto-save intervals, and preventing external HTTP requests effortlessly.
  • Save & Reuse Snippets — Store your frequently used code snippets for quick deployment across multiple sites, boosting efficiency and consistency in site management.
  • Automate Plugin Settings and Widget Updates — Easily synchronize plugin configurations and update widgets across all your managed sites with just a few clicks, reducing repetitive manual work.
  • Extend Site Functionality — Treat snippets as mini-plugins to clean up trash, update settings, create redirections, or enhance features without installing additional plugins or accessing each site separately.
  • Run Snippets on Multiple Sites Simultaneously — Effortlessly execute snippets site-wide to maintain uniform functionality and apply updates across your entire network instantly.
  • Safe & Tested Deployment Recommendations — Encourages running all code on test sites before live rollout, promoting safer site management and reducing downtime risks.
  • Seamless Integration with MainWP Dashboard — Designed to work as a native MainWP Extension, providing a modular, high-performance approach to managing your WordPress portfolio.

Previous Versions

8 available
MainWP Code Snippets5.1.1
Jun 18, 2026286 KB
MainWP Code Snippets5.1
Jun 10, 2026285 KB
MainWP Code Snippets5.0.4
Nov 29, 2024582 KB
MainWP Code Snippets5.0.3
Jun 26, 2024451 KB
MainWP Code Snippets5.0.2
Jun 19, 2024444 KB
MainWP Code Snippets5.0.1
May 29, 2024451 KB