Some Useful “Constants” for UpdraftPlus

Published on June 15, 2022 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.
Constants for UpdraftPlus - WordPress Backup Plugin

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

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]