MainWP Blog

Handy Code Snippets for the Yoast SEO Plugin
Tips & Tricks
Sebastian Moran

Handy Code Snippets for the Yoast SEO Plugin on your Child Sites

Yoast SEO is a well-known, easy-to-use plugin for SEO. Yoast SEO has a number of code snippets that can be saved to limit or disable specific functions. MainWP has an amazing extension for code snippets, which easily allows you to apply code snippets to your child sites. We have taken the time to save out a number of handy code snippets for Yoast SEO into the code snippets GitHub repo. A common bug in Yoast SEO is when you update the plugin, it can redirect to the about page and tour page. You can use this code snippet so this

Code-Snippets-for-Gravity-Forms
Tips & Tricks
Sebastian Moran

Handy Code Snippets for Gravity Forms on your Child Site

Gravity Forms is a solid, easy-to-use form plugin which has a number of add-ons and free plugins. Gravity Forms has a number of filters, actions, and hooks which allow you to modify most parts, using code snippets. MainWP has an easy-to-use extension for code snippets, so you can save a code snippet to any connected child site. The first of the useful code snippets for Gravity Forms is to change the default save and continue function in Gravity Forms, from the default of 30 days to a longer 90 days. The second snippet is to disable automatic plugin updates 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?