WordPress plugin · MainWP family
MainWP Code Snippets
Add, save and run PHP code snippets on all your MainWP child sites from one Dashboard.
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.