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.
| Constant | Default | What it does |
|---|---|---|
DISALLOW_FILE_MODS | WordPress's | When true, Temper is off for everyone. |
DISALLOW_FILE_EDIT | WordPress's | When true, Temper is off unless TEMPER_IGNORE_FILE_EDIT is true. |
TEMPER_IGNORE_FILE_EDIT | Not set | When 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_DIR | wp-content/temper | An absolute folder for working copies, snapshots and state, ideally outside the web root. See Storage. |
TEMPER_AI_ALLOW_PRIVATE | Not set | When true, the built-in AI may call local, private or reserved addresses, such as a model running on localhost. |
TEMPER_UNINSTALL_FILES | Not set | When true, deleting the plugin also deletes working copies and snapshots. See Storage and uninstall. |
TEMPER_UPDATE_SERVER | https://temperwp.com | Where Temper checks for updates. For testing against your own update server. |
TEMPER_UPDATE_PUBLIC_KEY | temperwp.com's key | The base64 Ed25519 public key that update answers must be signed with. Set it with TEMPER_UPDATE_SERVER. |
TEMPER_GITLAB_ALLOW_HTTP Pro | Not set | When true, a GitLab server may be reached over plain http://. Otherwise Temper uses https://. |
TEMPER_GITLAB_ALLOW_PRIVATE Pro | Not set | When 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 Pro | https://temperwp.com | Where Temper Pro activates and checks its licence and gets updates. |
TEMPER_PRO_LICENSE_PUBLIC_KEY Pro | temperwp.com's key | The 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.