MainWP Blog

WP-CLI - wp doctor
MainWP How To's
Sebastian Moran

WP-CLI wp doctor Command Why it Might Really Help Your Sites

What is the wp doctor command in WP-CLI? wp doctor lets you easily run a series of configurable checks to diagnose what’s ailing with WordPress. Without wp doctor, your team has to rely on their memory to manually debug problems. With wp doctor, your team saves hours identifying the health of your WordPress installs by codifying diagnosis procedures as a series of checks to run with WP-CLI. It comes with dozens of checks out of the box. name description autoload-options-size Warns when autoloaded options size exceeds the threshold of 900 kb. constant-savequeries-falsy Confirms expected state of the SAVEQUERIES constant. constant-wp-debug-falsy

WP-CLI
MainWP How To's
Sebastian Moran

What is the WP-CLI and why should I use it?

What is the WP-CLI? The WP-CLI is a way of doing anything that you would be able to do in the back-end of a WordPress site in wp-admin, but using command lines. A number of hosts have WP-CLI installed on new servers. One great example is on Cloudways. Common WP-CLI commands If a client site has a white screen issues from an active plugin or theme and you have sFTP/SSH access on the site, then you can change the active plugins. You can also change the site to a new theme, or install a new default theme to test if

Easy Cron for MainWP
MainWP Customization
Sebastian Moran

Disable WP Cron and use an external cron service for your MainWP Dashboard

The first step to use an external cron service like EasyCron to run MainWP crons, is this constant needs to be set in the MainWP Dashboard wp-config.php file. MainWP has a post which will help with this setting. define( ‘DISABLE_WP_CRON’, true ); For more information about WP Cron, see here. EasyCron is a task scheduler which provides services of calling specified URLs at a specified time or by a time interval. It eliminates the dependence on traditional Cron service and related knowledge to set up scheduled tasks. EasyCron offers free plans. After you have signed up for a free plan,

WordPress Auto Updates
MainWP How To's
Bogdan Rapaic

Not Ready For WordPress 5 But You Still Need Security Updates For The WordPress 4

A few days after the WordPress 5.0 release, the first security update (5.0.1) has been released which resolves vulnerabilities found in all previous versions of WordPress starting with 3.7. These vulnerabilities allow authors to alter metadata and delete files that they weren’t authorized to. Also, authors could create posts of unauthorized post types with specially crafted input which could be used to take over a site… WordPress team strongly suggests updating your sites immediately if you haven’t done so already… If you previously updated your sites to WordPress 5.0, you can easily update to 5.0.1 and you have nothing to worry about, however, what if

Delete Expired Transients
MainWP Customization
Sebastian Moran

Delete expired transients automatically on all of your MainWP connected child sites

What are transients are and why WordPress uses them WordPress uses transients to store data, that can be retrieved short-term from the options database table. But the problem ends up being when different plugins are using transients, but then not deleting that data when it has expired. It can cause performance issues over-time and cause the options database table to group. So ideally you would want to delete expired transients on any of the MainWP Child Sites you manage to improve performance. Delete Expired Transients Log into your MainWP Dashboard site Go to the MainWP > Plugins > Install page Search for Delete

mainwp & zapier
MainWP Customization
Sebastian Moran

How to use Zapier for your MainWP Dashboard Site

Zapier is a hosted service where you can mostly connect any 3rd party service with any 3rd party service. So, in this case, Zapier will enable us to filter emails and then based on the subject line, send an SMS to a mobile number that you select. We are going to use Zapier to send the MainWP email notification as SMS messages, so you can check on those instead of having to filter through all of your emails. SMS Notifications About Available Updates Zapier has a number of actions that can be used, in this example, we are going to send an

MainWP How To's
Bogdan Rapaic

Disallow Users to Switch Editors

Now, when the WordPress 5.0 has been released, even with the Classic Editor plugin installed, users are still being invited to switch to the newly introduced Block Editor despite assurances that this won’t be the case. This means that it’s not enough just to install the Classic Editor plugin, but one more step is required, you need to disable the option to switch editors. Changing this can be time-consuming when you need to do it on multiple sites, so we at MainWP made sure that this can be accomplished by using the MainWP Bulk Settings Manager Extension. To save you some

WordPress 5.0
MainWP How To's
Sebastian Moran

How to make sure your child sites are ready for WordPress 5.0

With the WordPress 5.0 release less than two weeks away from being shipped, the release is going to be pushed back to be later than November 27, 2018. You need to make sure that your child sites have been updated to deal with the new version of WordPress. The major changes being the new default Gutenberg block editor. WordPress 5.0 release data has been pushed back due to certain issues, with issues found in the beta, and release candidate being delayed till 22nd November, to warrant more time for beta testing a major WordPress update. The Gutenberg default block editor

MainWP How To's
Sebastian Moran

How and why you would want to use the MainWP Code Snippets Extension on your MainWP Dashboard

Code snippet is a small block of code which can be used to alter or make a change to a plugin function or to extend a plugin. For example, I would like additional fields to show for a customer on checkout, and I am using WooCommerce on a site. WordPress can be modified and improved in a number of ways by using code snippets on your connected child sites. The MainWP Code Snippets Extension for your MainWP Dashboard site is a way to execute code that would normally be in the form of updating the active themes functions.php file, or

MainWP How To's
Sebastian Moran

WooCommerce Store Speed How to Improve and Manage from Your MainWP Dashboard

WooCommerce powers over 30% of all online e-commerce stores, but when used on stores, it can cause performance issues if you are not aware of how to improve the load times and optimize the performance. A number of optimization changes to your child sites which are using WooCommerce can easily be made from your MainWP Dashboard site. Cart Fragments If you speed test a site using GTmetrix or WebPageTest, the slowest request you will notice in the store waterfall will be for cart fragments. WooCommerce cart fragments request would be for example, if you have a mini cart in the

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.