MainWP Code Snippets

$4.99

or
Item Rating
0 0

MainWP Code Snippets Extension is a simple way to add code snippets to your child sites from one centralized location.

The code snippet is a small chunk of PHP code inserted directly into your child sites. Sometimes they contain full functions; other times, they modify an existing function.

This tool is recommended for advanced users only. We only recommend utilizing it if you are an experienced PHP coder.

Code Snippet Types

The MainWP Code Snippet Extension allows you to run code in three ways:

Have a Code Snippet execute a function on the Child site

This type of snippet will add the snippet on your child site, and it will be executed on-site load. This type of snippets will be saved in your child site database and executed each time your child site is loaded by the PHP command eval().

You would use this option to make actual changes to your child sites. For example, if you wanted to customize the admin footer across different sites in your network, you would use this option.

Have a Code Snippet return information from a Child site

This type of snippet will get the info from child sites and display it in the Output Display. This type of snippet will not be saved on your child sites.

This option queries the child and returns the information to you. An example would be if you wanted to know the published post count of all of your sites.

Have a Code Snippet edit the wp-config.php file on a Child site

This type of snippets will be added to your child site wp-config.php file. This type of snippets will be saved only in your child site wp-config.php file.

One of the most important files in your WordPress installation is the wp-config.php file. A Code Snippet in this section allows you to do things such as increase WordPress memory, block external requests, disable WP-Cron, and much more!

Important Notes

MainWP is not responsible for the code that you run on your sites. Use this tool with extreme care and at your own risk. It is recommended that you run any code on a test site before releasing it on live sites.

In case you execute a bad code snippet and you crash your child sites, you need to remove the code snippet from your sites.

or

You must log in and be a buyer of this download to submit a review.

Yes of course, because we buy products from the original author and resell them.
All WordPress items such as plugins and themes are licensed under the General Public Licence (GPL). This means that once we have purchased the item we are free to redistribute it if we choose to do.
Ignore it. Developers include these so that the plugin or theme can update automatically or so that you can register for support. The item itself will work perfectly fine without anything being entered in the box. We would recommend updating your theme/plugins manually when updates become available on our site.
Yes, You can open ticket, and we will update asap in business day. ( Normally less than 24 hours, except holidays period )
We provide basic support for installing plugins and themes.

$4.99

or
Item Rating
0
0

Item Information

Last Update: September 22, 2022
Released: September 28, 2021
Version: 4.0.2