MainWP Blog

About
Sebastian Moran

How to Easily Change the WordPress Database Prefix

A basic security change to make on your child sites is to change the WordPress database prefix. The default WordPress database prefix is normally wp_. An easy plugin to be able to change all of the database tables on a sites database as well as update the prefix table value in the sites wp-config.php is by using the Brozzme DB Prefix & Tools Addon plugin. After the plugin has been installed and activated it will add a menu item; Tools > DB PREFIX Before you change the WordPress database prefix you should create a database backup of the sites database

Tips & Tricks
Sebastian Moran

Handy WooCommerce Code Snippets

WooCommerce is a very heavily used plugin to turn your WordPress child site into a full eCommerce store. MainWP offers a very easy to use code snippets extension which makes it easy to run code snippets over all of the connect child sites. A couple of common of handy code snippets if you needed to temp disable all products from being purchasable on your child site you can use this code snippet; add_filter( ‘woocommerce_is_purchasable’, ‘__return_false’); You would then need to deactivate that code snippet from the child sites where it was running. Another common code snippet fix would be for

Tips & Tricks
Sebastian Moran

Disable the MainWP Child plugin from Showing the Site Health Info

The site health check feature is a new feature in WordPress 5.2. If you have the MainWP child plugin already hidden from the list of plugins on the child site using the branding extension for MainWP, you may also want to hide the MainWP child plugin from showing on the info tab of the Site Health page. There is now an easy way to hide themes and plugins from showing in the site health info tab, using the Site Health Manager plugin. First, you will need to install and activate the Site Health Manager plugin on all the connected child

Tips & Tricks
Sebastian Moran

Blocking Bad Bots on your Child Site using Booter Plugin

Like something out of a sci-fi movie, bots will inevitably hit your site to index it, trying to add products to cart and create spam accounts if you are using WooCommerce on a child site. One of the easiest ways to block bot crawlers on your child site is to use the Booter plugin to boot those bots. After you have installed and activated the plugin, it will add a new sub-menu in wp-admin on the child site. Settings > Booter – Bots & Crawler Manager Which will take you to the general option settings of the plugin: General Bad

Tips & Tricks
Sebastian Moran

How to Cleanly Remove the Really Simple SSL Plugin

Really Simple SSL is a plugin that is used and installed on a number of sites that have a valid SSL cert to make the site load over HTTPS. But the plugin does not need to be used if the site database already has had a search-replace run from HTTP to HTTPS. If you have used WP-CLI then you can very easily run a search and replace in the sites database before baking a site database backup. wp db export wp search-replace ‘https://sitedomain.com’ ‘https:/sitedomain.com’ –recurse-objects –skip-columns=user_email,guid –all-tables wp option update home ‘https://sitedomain.com’ wp option update siteurl ‘https://sitedomain.com’ wp rewrite flush

Tips & Tricks
Sebastian Moran

The Best MainWP Posts of 2019

Not only are we launching into a new decade, we are leaving an integral one behind. Here are some highlights and the most useful posts put out in 2019. Using the Koko Analytics Plugin on your Sites https://mainwp.com/using-the-koko-analytics-plugin-on-your-sites/ How to Remove all Wordfence Plugin Created Data https://mainwp.com/how-to-remove-all-wordfence-plugin-created-data/ How to Disable Admin Email Verification on Your Child Sites https://mainwp.com/how-to-disable-admin-email-verification-on-your-child-sites/ How to Remove the W3 Total Cache Plugin Cleanly https://mainwp.com/how-to-remove-the-w3-total-cache-plugin-cleanly/ Losing Information by Activating Jetpack https://mainwp.com/losing-information-by-activating-jetpack/ Using WP Optimize Plugin for Site Caching on Your Child Site https://mainwp.com/using-wp-optimize-plugin-for-site-caching-on-your-child-site/ Handy Code Snippets for the Yoast SEO Plugin on your Child Sites https://mainwp.com/handy-code-snippets-for-the-yoast-seo-plugin-on-your-child-sites/ How

Tips & Tricks
Sebastian Moran

How to Host Google Analytics Locally on Your Child Site

If you are looking at ways to improve the site performance of a site that is using Google Analytics for site analytics, then one option is to host Google Analytics locally on your child site. There is a new plugin called Flying Analytics, which makes it very easy to be able to host Google Analytics locally on your child site. After you have installed and activated the plugin it will add a new admin menu too; Settings > Flying Analytics There will be two analytics JS options, which will show the recommended option is to go with the analytics.js file

Tips & Tricks
Sebastian Moran

Using the Website File Changes Monitor Plugin for Tracking File Changes on Your Child Site

Tracking file changes made to your child site can be a messy prospect, depending on which plugin solution is being used. WP White Security, the company behind plugin WP Security Audit Log and Password Policy Manager for WordPress, has created a new plugin called Website File Changes Monitor. First, you will need to install and activate the Website File Changes Monitor plugin on your child site. After the plugin is active on the child site, you will notice a new admin menu created for File Monitor. File Monitor > Settings You can set notification of the file changes, if files

About
Sebastian Moran

How to Remove the Sumo Plugin Cleanly

Sumo is a service that does have a plugin for WordPress. Sumo works with WooCommerce for abandoned cart recovery as well as being able to create a timed popup for email opt-in forms. Sumo can add a number of requests on load on a site. Example requests on the load that you will see with the Sumo service and plugin active will show as a number of the following external requests; https://sumo.com/api/site/ https://load.sumo.com/ You can replace Sumo with a number of other plugins that work better for timed popups for plugin solutions for abandoned cart recovery in WooCommerce. By default

Tips & Tricks
Sebastian Moran

Using SimpleForm Plugin for Clean Site Forms

Simple but performance-based contact forms on your child sites are worth knowing of clean plugin options. On certain sites, you do not always need a number of extra fields in your contact site forms. There is a recent plugin option that works well and it is called SimpleForm. After you have activated and installed the plugin it will add a new admin menu item called Contacts. The plugin adds basic contact fields and you can set the provided fields you would like to make required. Form submission made using the SimpleForm plugin can be accessed from the following admin menu;

Looking for something?