Skip to content

Configuration

Required constants / environment variables

Variable Where to set Description
DIXA_API_TOKEN wp-config.php Bearer token for the Dixa REST API
DIXA_SCHEDULE_ID .env / env() Business-hours schedule ID used for open/closed status
DIXA_MIM_TOOLS_API_KEY .env / env() Basic Auth username for the order status endpoint called by Dixa MIM Tools
DIXA_MIM_TOOLS_API_SECRET .env / env() Basic Auth password for the same endpoint

Example (wp-config.php)

define( 'DIXA_API_TOKEN', 'your-dixa-api-token' );

Example (.env via Bedrock/Dotenv)

DIXA_API_TOKEN=your-dixa-api-token
DIXA_SCHEDULE_ID=your-schedule-id
DIXA_MIM_TOOLS_API_KEY=a-long-random-key
DIXA_MIM_TOOLS_API_SECRET=a-long-random-secret

DIXA_MIM_TOOLS_API_KEY/DIXA_MIM_TOOLS_API_SECRET are issued to Dixa and never to wp-config.php — they gate an unauthenticated-by-WordPress REST endpoint, so they belong in the environment, not in a file that regularly gets shared/committed by mistake. Estimated delivery on that same endpoint has a built-in default for a handful of carriers, and can be overridden or extended per site via the dixa_order_status_estimated_delivery filter (see REST API).

WordPress options

Option key Type Description
dixa_customer_service_status bool Cached open/closed state, updated every 30 minutes by the Action Scheduler job

Dependencies

The plugin requires Action Scheduler (bundled with WooCommerce) for async customer sync jobs.