Temper
Menu

Constants

The wp-config.php constants Temper and Temper Pro read.

Define these in wp-config.php, above the line that says to stop editing.

ConstantDefaultWhat it does
DISALLOW_FILE_MODSWordPress'sWhen true, Temper is off for everyone.
DISALLOW_FILE_EDITWordPress'sWhen true, Temper is off unless TEMPER_IGNORE_FILE_EDIT is true.
TEMPER_IGNORE_FILE_EDITNot setWhen true, Temper runs even with DISALLOW_FILE_EDIT. Users then need the install_themes and install_plugins capabilities instead of edit_themes and edit_plugins.
TEMPER_STORAGE_DIRwp-content/temperAn absolute folder for working copies, snapshots and state, ideally outside the web root. See Storage.
TEMPER_AI_ALLOW_PRIVATENot setWhen true, the built-in AI may call local, private or reserved addresses, such as a model running on localhost.
TEMPER_UNINSTALL_FILESNot setWhen true, deleting the plugin also deletes working copies and snapshots. See Storage and uninstall.
TEMPER_UPDATE_SERVERhttps://temperwp.comWhere Temper checks for updates. For testing against your own update server.
TEMPER_UPDATE_PUBLIC_KEYtemperwp.com's keyThe base64 Ed25519 public key that update answers must be signed with. Set it with TEMPER_UPDATE_SERVER.
TEMPER_GITLAB_ALLOW_HTTP ProNot setWhen true, a GitLab server may be reached over plain http://. Otherwise Temper uses https://.
TEMPER_GITLAB_ALLOW_PRIVATE ProNot setWhen true, a GitLab server may be on a private or reserved address, or on a port other than 80, 443 or 8080.
TEMPER_PRO_LICENSE_SERVER Prohttps://temperwp.comWhere Temper Pro activates and checks its licence and gets updates.
TEMPER_PRO_LICENSE_PUBLIC_KEY Protemperwp.com's keyThe base64 Ed25519 public key that licence and update answers must be signed with.

Temper Pro also defines TEMPER_BUNDLED and TEMPER_PLUGIN_FILE when it loads the bundled Temper. Don't set them yourself.

Warning

Changing the update or licence server, or its key, means your site trusts whatever that server signs. Leave them unset on live sites.

The same values can be changed with filters. See Hooks for developers.