Skip to content
Just updated71 new versions in the last 24 hoursDownloads left today: of of leftNo downloads left today · Resets in h
MainWP Code Snippets Extension plugin cover image

PluginUpdated

MainWP Code Snippets Extension

by MainWPv5.1.1Unlimited sites

MainWP Code Snippets Extension by MainWP is a plugin that adds a snippet manager to the MainWP Dashboard.

Product facts

Version
5.1.1
Released
18 June 2026
Type
Plugin
Licence
GPL
Included in
Every plan, or $4.19 / year on its own

Overview

Managing a group of WordPress sites often means repeating the same small edit again and again. A line in wp-config.php, a tweak to a theme file, a setting change: each one needs a login and a careful hand. This extension moves that work into the MainWP Dashboard, where you can add a PHP snippet once and send it to the child sites you pick.

Snippets can act like small plugins. They can clean up trash, update settings, create redirections or apply security rules such as disabling plugin and theme editors or blocking core updates. The extension works as a native MainWP Extension, so it suits developers, agencies and site managers who already run their portfolio from MainWP and want to test code on a staging site before it goes live.

Features

  • Central snippet management: Add, edit and organize PHP snippets for all your child sites from the MainWP Dashboard, without switching between individual site admin areas.
  • Remote code execution: Run a snippet on a child site to pull back information such as post counts, or edit the wp-config.php file of that site without logging into it.
  • Security hardening snippets: Apply code that disables theme and plugin editors, blocks core updates, changes auto-save intervals or stops external HTTP requests on the sites you manage.
  • Saved and reusable snippets: Keep frequently used snippets in one place so you can deploy them to other sites quickly and keep your setups consistent.
  • Plugin settings and widget updates: Synchronize plugin configurations and update widgets across managed sites with a few clicks, which cuts down repetitive manual work.
  • Snippets as mini-plugins: Use code to clear trash, update settings or create redirections, adding functionality without installing extra plugins on each site.
  • Run on many sites at once: Execute one snippet across several child sites at the same time, so changes and updates apply uniformly across your network.
  • Test before going live: The workflow encourages trying code on test sites first, which helps you catch problems before they reach live sites.

Best for

  • Agencies managing many client WordPress sites
  • Developers who deploy the same PHP code repeatedly
  • Site managers already using the MainWP Dashboard

Changelog

Version 5.1.1 — 16 June 2026

  • Fixed Corrected the Code Snippets table installer to always define the auto-increment ID as a primary key.

Earlier versions

  • 5.1 (8 June 2026): 5 new, 13 improved, 2 fixed, 2 security
  • 5.0.4 (28 November 2024): 1 new, 1 improved, 1 fixed
  • 5.0.3 (25 June 2024): 1 fixed

FAQ

Is MainWP Code Snippets Extension free?

The code of MainWP Code Snippets Extension is licensed under the GPL, so anyone may use, change and share it. Buy GPL is a paid service: a plan or a purchase of MainWP Code Snippets Extension gives you the download and its updates. The developer's own support, licence key and online services are not included.

Which version of MainWP Code Snippets Extension is this?

Version 5.1.1, released 18 June 2026. New versions appear here when the developer publishes them.

How do I update MainWP Code Snippets Extension?

Install Buy GPL Updater on your site and paste your key from My Account. It installs new versions of MainWP Code Snippets Extension for you.