Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at Unwanted.cloud

RSS Latest posts from my personal blog


Subscribe to RSS feed


Setting global configuration for Gravity Forms on a WordPress Multisite

Stanislav KhromovStanislav Khromov

I wrote a small plugin that lets you set the default settings for Gravity Forms across an entire WP Multisite (Network). The settings are specified in wp-config.php, and once you set them there, users of individual blogs won’t be able to override them.

Install this plugin into the /wp-content/mu-plugins/ directory of your multisite, and then put this in your wp-config.php:

/* Global settings that will be active across the multisite */
define('GF_DISABLE_CSS', 0);
define('GF_OUTPUT_HTML5', 0);
define('GF_NO_CONFLICT_MODE', 0);
define('GF_RECAPTCHA_PUBLIC_KEY', '');
define('GF_RECAPTCHA_PRIVATE_KEY', '');
define('GF_LICENSE_KEY', '');

Read more info about the plugin on GitHub!

Full-stack impostor syndrome sufferer & Software Engineer at Schibsted Media Group

Comments 0
There are currently no comments.