MainWP Blog

Tips & Tricks
Sebastian Moran

Export Your Menus Out Using WPS Menu Exporter Plugin

Chances are, you’ll find yourself in a situation where you need to backup a complex menu you’ve created on a child site. WordPress, by default, will not allow you to export menus from; Tools > Export You can use the WPS Menu Exporter plugin to export navigation menu items to an XML file. Install and activate the plugin on the child sites that you need to backup the menus you have created. When you go to wp-admin on the specific child site, click; Tools > Export Now, select Navigation Menu Items. If you have a corrupted menu but have a

Tips & Tricks
Sebastian Moran

How to Delete Inactive Users on Your Child Sites

Over time, users on a site can easily mount up on your child site. As part of a regular cleanup, you can delete inactive users on your child sites, using a couple of plugin options. The first plugin that can be used is the Inactive User Deleter. After the plugin has been installed and activated, it will add a new admin menu item under users in wp-admin; Users > Inactive users You can use different flags (e.g., if a user has approved comments/ if that user has spam comments). You can then filter out if the user was created longer

Using the Pre-Publish Checklist Plugin for Checking New Site Content
Tips & Tricks
Sebastian Moran

Using the Pre-Publish Checklist Plugin for Checking New Site Content

Making sure that you check new content that is being added on your site is something that you would automatically check that everything has been set on it. For example, does the new post have a catchy title, is SEO set for the post, does the post have a featured image on it. There is a new plugin that will help be able to check content before it is published on a site. After you have installed and activated the Pre-Publish Checklist plugin on your site it will add a new setting menu in wp-admin; Settings > Pre-Publish Checklist On

Tips & Tricks
Sebastian Moran

The Importance of Self-Esteem

“Greater self-esteem produces greater success, and greater success produces more high self-esteem, so it keeps on spiraling up.” -Jack Canfield As human beings, we have a primal need for positive self-esteem; to feel good about ourselves. As people, we are strongly motivated to maintain a sense of consistency among the different belief systems and self-perceptions that make us who we are. Problems arise when there are differences between our individual aspirations, versus our actual behaviors.  When an actual experience falls short of what we believe we’re capable of, we tend to feel a pattern of negative emotions that can range

Tips & Tricks
Bogdan Rapaic

Remove Custom Branding for a Specific User on Child Sites

MainWP Child 4.0.3, released on October 1st, 2019, introduced one handy filter mainwp_child_branding_init_options that can be used to hide custom branding for a specific user on child sites. Let’s see the usage example: add_filter( ‘mainwp_child_branding_init_options’, ‘mycustom_mainwp_child_branding_init_options’ ); function mycustom_mainwp_child_branding_init_options( $option ) {        $current_user_id = get_current_user_id();        if ( $current_user_id == ‘1’ && is_array( $option ) && isset( $option[ ‘cancelled_branding’ ] ) ) {        $option[ ‘cancelled_branding’ ] = true;    }        return $option; } In this example, all custom MainWP Branding Extension options will be applied for all users no the child site except for the user with ID 1. Also, the filter

Tips & Tricks
Sebastian Moran

How to Keep Your Child Site Secure

If you build and maintain sites for customers, site security is a top priority. WordPress moved to a two-week schedule for minor releases after WordPress 5.0 was released. Each WordPress minor release will include security fixes. These same security changes are backported to older versions of WordPress (e.g., in the case of the 4.9.X branch, the security release would be 4.9.10). You need to set a minimum version of WordPress that you will support on client sites, no later than two versions. It is easier to keep the child sites updated to the most current version, rather than running a

Finding Which Shortcodes are Being Used on Your Child Sites
Tips & Tricks
Sebastian Moran

Finding Which Shortcodes are Being Used on Your Child Sites

Plugins and themes can heavily use shortcodes on your child sites. Shortcodes are not a problem, but when you have previously used a plugin for forms, then deactivated and deleted the plugin, but the shortcode is still being used on the site but the plugin is not, it becomes a problem. There is an easy way to find which shortcodes are being used on your site, by installing and activating the Shortcodes Finder plugin. After you have installed and activated the plugin if you go to; Tools > Shortcodes Finder The window will open a new page related to the

Tips & Tricks
Sebastian Moran

Validate Email Registrations on Your Child Site

To reduce the number of spam user account registrations on your child site, it is helpful to verify the validity of emails for those user accounts. There is a new service and WordPress plugin, which will help reduce those spam account registrations. The plugin is called EVA Email Validation. The plugin requires that you sign up for an account at the EVA site. With the plugin installed and activated, it will add a new admin menu for: Settings > EVA – Email Validation You will need to create a new API key for the child site from the EVA site.

Tips & Tricks
Sebastian Moran

Using ShortPixel to Optimize Site Images on your Child Site

Site images can take up the bulk of the site size of a child site. Additionally, uncompressed images in your site’s media library will cause performance issues on the front-end of the site. One of the solid plugin and services for image optimization is ShortPixel. ShortPixel has a free plan which includes 100 images per month, a number of well-priced monthly plans, and one-time plans which you can pick from. After you have signed up for ShortPixel, you will need to go to the “show my API page” to get the API key that you intend to set in the

Tips & Tricks
Sebastian Moran

How to Remove the W3 Total Cache Plugin Cleanly

W3 Total Cache is a plugin which is used for page caching, minification and Redis integration, but it does come at a price. The codebase is old, and if not configured correctly, it can cause issues on the site it is being used on. Using a different plugin or plugins for page caching, minification, and Redis object caching is possible, but means you need to remove all traces of the W3 Total Cache plugin. W3 Total Cache plugin on deactivation and deletion will not remove any of the files or changes it adds to a site. Steps to clean all

Looking for something?