Skip to main content
Maxi AI Core exposes a set of PHP constants you can define in your wp-config.php file to override default behavior. These constants let you tune OAuth token lifetimes, licensing check intervals, WP-CLI write permissions, and GDPR data masking — without touching plugin settings or the database. Add any constant above the /* That's all, stop editing! */ line in your wp-config.php file using the format:

Licensing

These constants control how often Maxi AI Core validates your license against the remote server and where it sends update checks.

OAuth 2.1

These constants adjust the behavior of the OAuth 2.1 server that AI clients use to connect to your site. The defaults are designed for typical use — you only need to change them if you have specific security or compliance requirements.

Kill switch

Access control

Rate limiting

Token lifetimes

Retention and cleanup

Data masking

Setting MAXI_AI_DATA_MASKING to false means AI providers will receive unredacted personal data such as names, email addresses, and shipping details. Only disable masking if your use case requires it and you understand the privacy implications.

WP-CLI write groups

Read-only WP-CLI commands are always permitted. Write commands are blocked by default and must be explicitly unlocked by defining the corresponding constant. Each constant enables a specific group of commands.
All WP-CLI constants are false by default. You only need to define the ones for the write groups you actually want to allow.
For a full explanation of WP-CLI access controls — including the DB query blocklist and hard-banned commands — see WP-CLI access.

Example wp-config.php snippet

The following example shows a representative set of constants. Copy only the ones you need and adjust the values to suit your site.