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

MAINWP BY THE NUMBERS 2018
WordPress Business
Todd Jones

MainWP by the numbers 2018 [Infographic]

Data is all around us. Chances are you look at data every day. Maybe you have a spreadsheet loaded with Google Analytics information. Maybe you double check marketing statistics every day. Making sense of data is a noble quest. In fact, finding the story in the data is more than a noble quest. It helps users see behind the numbers to find out what is happening. Infographics are similar. It allows a pictorial representation of numbers and statistics. Often, infographics become something of a novelty which creates the kind of interest that gets content shared far and wide. We’ve talked

WordPress wisdom from Gremlins
Roundup
Sebastian Moran

Life Lessons and WordPress Wisdom from Gremlins

Warning: This post may contain Gremlins. With Christmas around the corner, one of the classic Christmas movies is still Gremlins (1984), a mid-eighties mix of comedy and horror, set with a very Christmas theme. With the film’s mix of Frank Capra and Speilbergisms, the setting is a riff of Bedford Falls from It’s a Wonderful Life, even if it does look like the back-lot of Universal Studios. The film is a classic mix of director Joe Dante’s best work and an amazing soundtrack by the late Jerry Goldsmith. Here are the top five life lessons from Gremlins that apply to

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,

Lessons from Christmas movies
WordPress Business
Todd Jones

Things we can learn from the top Christmas movies of all time

Everyone has their favorite Christmas movie list. So, you know, there are tons of opinions on what the best movies at Christmas are going to be. I’m not going to give you a list, but I am going to give you some lessons we can learn from some of the best Christmas movies (yes Die Hard is a Christmas movie!) It takes all year to get here, but it seems to finish in a flash, there is no time to waste! So, let’s get to it. From a villain to hero One thing we can see in A Christmas Carol

WordPress 12 Days of Christmas
Roundup
Sebastian Moran

WordPress 12 Days of Christmas

With Christmas only a few days away, now is the time to reflect on the many nuggets of joy that WordPress has sprinkled over our lives. As well as the frustrations and the many, many things that can break on clients site, as well as the things that WordPress core updates can break. On the 1st day of the Christmas, WordPress gave to me – A way to delete the Hello Dolly plugin on client sites, so clients did not activate it by mistake. On the 2nd day of Christmas, WordPress gave to me – Maybe a reason to update WordPress core

2018 year in review
WordPress Business
Todd Jones

A year in review: A walk through Memory Lane at the MainWP Blog in 2018

As we finish up the year, I thought it would be interesting, or fun, to take a look at some of the articles at the MainWP blog in the year 2018. Consider it a walk down the MainWP Blog Memory Lane. See the most popular articles at MainWP in 2017 This year, it seems like, was dominated by some major changes in our industry. First, there was the dreaded GDPR that launched in Europe. This lead to our friends in that part of the world scrambling to determine if they and their client’s websites were deemed acceptable by this new

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

Looking for something?