Skip to content

Constants ​

Add these to wp-config.php, above the "That's all, stop editing!" line.

ConstantEffect
VXFRAMEWORK_CONFIG_LOCKEDtrue locks configuration to your code: overrides, resets, imports, file writes and mode changes are refused. See Lock production.
VXFRAMEWORK_LICENSE_KEYActivates the site automatically the first time an administrator opens wp-admin. See License.
VXFRAMEWORK_LICENSE_ENVproduction (default) or development, used with VXFRAMEWORK_LICENSE_KEY.

The same behavior is also available as filters: vxframework/config/locked for the lock.

Technical details for LLMs
  • Read-only constants defined by the plugin: VXFRAMEWORK_VERSION, VXFRAMEWORK_PLUGIN_DIR, VXFRAMEWORK_PLUGIN_URL. Don't define these yourself.
  • Licensing service overrides (VXFRAMEWORK_LICENSE_API, VXFRAMEWORK_LICENSE_CONNECT, VXFRAMEWORK_LICENSE_UPDATE_HOST, VXFRAMEWORK_LICENSE_PUBLIC_KEY) are for development environments only and are ignored unless overrides are allowed.

Documentation for the VX Framework.