Some Useful “Constants” for UpdraftPlus

Constants for UpdraftPlus - WordPress Backup Plugin

Heads up: This page may include affiliate links. Read the full disclosure.

If you are using the UpdraftPlus plugin for site backups then you can control a number of parts of the plugin using constants.

Useful Constants for UpdraftPlus

UpdraftPlus WordPress Backup Plugin

The constants for the UpdraftPlus plugin can be added to the site wp-config.php file. Adding constants to your site wp-config.php is possible using the code snippets extension of MainWP. You can also manually edit the site’s wp-config.php file to add the required constant to it.

If you have larger database tables then you can set the backup for the database to always use binary MySQL dump using this constant;

define('UPDRAFTPLUS_ALWAYS_TRY_MYSQLDUMP', true);

If you have disabled WP-Cron since you are running WP-Cron from an external or server-side cron then you can remove the notice in the UpdraftPlus setting using this constant;

define('UPDRAFTPLUS_DISABLE_WP_CRON_NOTICE', true);

If you are using the premium version of UpdraftPlus then you can disable the admin lock feature using this constant;

define('UPDRAFTPLUS_NOADMINLOCK', true);

To be able to remove the UpdraftPlus admin bar you can use this constant;

define('UPDRAFTPLUS_ADMINBAR_DISABLE', true);

These constants for the UpdraftPlus plugin will enable you to set specific defaults and hide parts of the plugin in wp-admin easily.

Useful Links

Comments are closed.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.