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

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

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.