WordPress plugin · MainWP family

MainWP Code Snippets

Add, save and run PHP code snippets on all your MainWP child sites from one Dashboard.

Version

5.1.1

Last updated

Jun 22, 2026

Developer

MainWP

GPL · Official site →

Auto updates Unlimited sites Unlimited downloads No daily limits

About This Plugin

This MainWP extension lets you add, manage and run PHP code snippets on your child sites from your MainWP Dashboard. You stop switching between sites and editing theme files or wp-config.

You run code three ways: execute functions directly on child sites, retrieve information from them, or modify the wp-config.php file. You can sync plugin settings, update widgets or pull post counts across every site. Snippets can run on several sites at once.

Save the snippets you use most and reapply them to other sites. Snippets also harden a site: disable theme and plugin editors, block core updates, adjust auto-save intervals, prevent external requests, raise the WordPress memory limit and block malicious URL requests. It requires the MainWP Dashboard plugin.

$99
a yearor $299 lifetime

Start with the free trial.
Decide after thirty days.

Start My Free Trial

No credit card required.