Skip to content

Configuration & Constants

Daniel M. Hendricks edited this page Aug 13, 2017 · 8 revisions

Constants

The following constants are available for you to define in wp-config.php:

WP_ENCRYPT_KEY

The Utils::encrypt() and Utils::decrypt() helpers use the SECURE_AUTH_KEY in wp-config.pgp by default. You may specify an alternate salt by defining:

define( 'WP_ENCRYPT_KEY', 'random_string' );

If you need a random string, visit the salt page or throw an MD5 in there.

plugin.json

This plugin loads many of its defaults & settings from plugin.json. You may change the settings as desired.

prefix

Contains the plugin's prefix, used for wp_options and other field names.

short_name

A shorted name for the plugin, potentially useful for WP Admin menu item names when the actual plugin name is long (and wraps).

object_cache

Define object cache settings:

  • group - The object cache group key that is unique to the plugin under which all cached objects are stored.
  • expire_hours - The number of hours to cache settings before they automatically expire.

dependencies

A list of dependencies and versions to check for. By default, this plugin checks for required minimum versions of PHP and Carbon Fields.

dependencies

The cypher method used by the Utils::encrypt() and Utils::decrypt() functions.

Clone this wiki locally