MainWP Blog

Set a Homepage Logout Redirect on Your Sites
Tips & Tricks
Sebastian Moran

How to Easily Set a Homepage Logout Redirect on Your Child Sites

If you want to create a setup so when a user logs out of a child site, they are redirected to the homepage of the site, one easy-to-use plugin solution is the WP Logout Redirect plugin. After the plugin has been installed and activated on the child site, it has no settings to be changed. An example would be if you used a membership plugin or WooCommerce, then you needed to have a customer or user redirect on logout back to the homepage, and not stay on the existing page. If you need a plugin which has more options for

Useful Code Snippets for WooCommerce
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WooCommerce

WooCommerce is among the most widely used plugins in WordPress to enable eCommerce on a site. Since WooCommerce has filters, actions, and hooks, that means making site changes using code snippets is easy. Code snippets can easily be added on any connected child site using the MainWP Code Snippets extension. For example, if you do not have Add to Cart redirect enabled, the Continue Shopping link will redirect the customer back to the product that was added when clicked. In most cases, this does not make sense. You can use this code snippet, which will set the Continue Shopping link

remove gutenberg banner
Extension Tutorials
Bogdan Rapaic

How to hide the Gutenberg Banner from your child sites

WordPress 4.9.8 release, scheduled for July 31, 2018, will include a banner inviting website owners to try the new Gutenberg editing experience. This banner shows for all users with the back end access and each user needs to dismiss it individually. Hiding this banner on multiple sites can take you some time, however, MainWP Code Snippets Extension can come handy and save you some time. With the following snippet, you can hide the banner directly from your dashboard and hide it for all users. Code for removing Gutenberg Invite Banner Add the following information to your Code Snippets Extension and then

Looking for something?