The cmd-features plugin is configured through WordPress options prefixed with CMOPT_. An administrator edits them on the Command Media Features settings screen, under Settings in the WordPress admin.
An option appears on that screen once the feature that declares it is switched on for the site. This file is the machine-readable source of truth for the field titles, control types and descriptions listed below, and the settings screen renders itself from it.
Secrets. CMOPT_AI_OPENAI_KEY holds a live API credential. It is stored unencrypted in the options table, so treat database dumps accordingly and never commit a populated value.
Security
| Option | Type | Default | Description |
|---|---|---|---|
CMOPT_SEC_DISABLE_FILE_EDITORSDisable built-in file editors | checkbox | true | Block the Theme File Editor and Plugin File Editor for all users, including administrators. Turn this off to use WordPress's existing configuration and permissions; an existing DISALLOW_FILE_EDIT restriction still applies. Installation, updates, the visual Site Editor, content editors, and Additional CSS are unaffected. |
CMOPT_SEC_AUTOUPDATE_PLUGINForce automatic plugin updates | checkbox | true | Enable automatic updates for all plugins, including newly installed plugins. WordPress shows auto-updates as enabled without a per-plugin toggle. Turn this off to restore your saved per-plugin choices. Global WordPress and hosting update restrictions still apply. |
AI search and RAG
Options for AI-generated search summaries and the retrieval that feeds them.
| Option | Type | Default | Description |
|---|---|---|---|
CMOPT_AI_PROVIDERAI provider | text | auto | Which connector answers this site's AI requests. Rendered as a dropdown of the AI connectors WordPress reports, so the list reflects what is installed rather than a fixed set. auto, the default, picks the OpenAI connector when it is usable and otherwise the first connector that is. Choosing a connector by name pins the site to it, and a request fails rather than being answered by a different one. A stored value of legacy is read as auto: it used to select the plugin's own OpenAI requests, which have been removed, and a site carrying that value should keep answering rather than go quiet. |
CMOPT_AI_OPENAI_KEYOpenAI API key | password | — | Secret key for the ChatKit chatbot, whose session endpoint is OpenAI-specific and has no equivalent in the WordPress AI layer. It no longer has any part in generating search summaries or Contact Form 7 replies, which go through the connector selected above. When this is empty, ChatKit falls back to the key stored on the Connectors screen. |
CMOPT_AI_CONNECTOR_MODELConnector model | text | gpt-5.6-luna | The model every request asks for. Defaults to gpt-5.6-luna. An empty value resolves to that same default rather than deferring to WordPress, whose automatic pick is the first model the provider lists that supports the prompt — on OpenAI a flagship model, neither the cheapest nor the most suitable for a summary. The value must be an ID the connected provider lists for text generation: a model it does not list is refused, no request is sent, and the error log names the listed ID to use. Anthropic lists dated IDs (claude-haiku-4-5-20251001, not claude-haiku-4-5) and OpenRouter lists vendor-prefixed ones (openai/gpt-5.6-luna), so the default only works on the OpenAI connector. When the provider reports that a different model answered, that is written to the error log. wp cmrag "question" –debug shows the model requested and the model the provider reports. |
CMOPT_AI_SYSTEM_PROMPTSystem prompt | textarea | — | Instructions given to the model before the retrieved context. Seeded with a default summarisation prompt on first activation. |
CMOPT_AI_USER_PROMPTUser prompt template | textarea | Query: %s Content: %s | Template combining the visitor's query and the retrieved context. The first %s is the query; the second is the content. |
CMOPT_AI_POST_TYPESSearched post types | text | post,page | Comma-separated list of post type slugs that retrieval draws context from. |
CMOPT_AI_NUM_ARTICLESArticles retrieved | number | 6 | How many articles are retrieved and offered to the model as candidate sources for a search summary. Only the articles the model reports as materially used are cited, so raising this widens the evidence available without lengthening the citation list. |
CMOPT_AI_USE_DEFAULT_WPQUERYUse the default WP_Query | checkbox | — | Set to 1 to retrieve context with WordPress's default search query instead of the plugin's own retrieval query. Accepted values: |
CMOPT_AI_MAX_COMPLETION_TOKENSMax completion tokens | number | 15000 | Upper bound on tokens the model may generate in one response. Any value of zero or below is ignored and the default applies. |
CMOPT_AI_PRIORITYPriority service tier | checkbox | — | Set to 1 to request OpenAI's priority service tier, which lowers latency at higher cost. Applies to the OpenAI connector only. Anthropic no longer sells Priority Tier capacity, and the Anthropic and Google provider plugins do not forward a service tier, so the setting has no effect on those connectors. wp cmrag "question" –debug reports whether a tier was sent and which tier the provider says served the request. Accepted values: |
CMOPT_AI_API_LIMIT_30SECAPI calls per 30 seconds | number | 20 | Per-IP rate limit over a rolling 30 second window. Set to 0 to disable this limit. |
CMOPT_AI_API_LIMIT_HOURAPI calls per hour | number | 200 | Per-IP rate limit over a rolling one hour window. Set to 0 to disable this limit. |
CMOPT_AI_PRIVILEGED_PHRASESPrivileged phrases | textarea | — | Phrases and keywords that receive special handling during retrieval. |
CMOPT_AI_DISCLAIMERAI disclaimer | text | AI generated summary. Check sources for clarity | Disclaimer shown alongside AI-generated summaries to encourage readers to verify sources. |
CMOPT_AUTO_INJECT_ANSWER_BLOCKAdd the AI answer above search results automatically | checkbox | — | When on, the plugin finds the active theme's search results template as it loads and inserts the CM AI Search Answer block above the results list. The template itself is not edited. In a block theme the answer goes above the Query Loop block that inherits the main query; in a classic theme it is printed as the main search loop starts, so a search with no results shows no answer there. A template that already contains the block is left as it is. Off by default during testing. Accepted values: |
ChatKit
Options for the ChatKit chatbot block and the site_search tool it calls.
| Option | Type | Default | Description |
|---|---|---|---|
CMOPT_AI_CHATKIT_WORKFLOW_IDSAllowed ChatKit workflow IDs | textarea | — | Allowlist of workflow IDs a ChatKit block may request, separated by commas or newlines. A session request naming a workflow outside this list is rejected with a 403. |
CMOPT_AI_CHATKIT_SEARCH_MAX_RESULTSsite_search max results | number | 3 | How many results the ChatKit site_search tool may return. Clamped to between 1 and 10 regardless of the stored value. |
CMOPT_AI_CHATKIT_SEARCH_MAX_CHARSsite_search max characters | number | 24000 | Character budget for the ChatKit site_search payload. Clamped to between 500 and 200000 regardless of the stored value. |
CMOPT_AI_CHATKIT_SEARCH_POST_TYPESsite_search post types | text | — | Comma-separated post type slugs the site_search tool may filter by, for example post,page,tribe_events. Leave empty to offer every public post type already exposed to the REST API. A public post type named here is also exposed to the REST API, since wp/v2/search only offers post types registered with show_in_rest — the reason The Events Calendar entries are unreachable on some installs. |
CMOPT_AI_CHATKIT_BETA_MODELBeta chatbot model | text | gpt-5.6-luna | OpenAI model the beta chatbot calls through the Responses API. Blank uses gpt-5.6-luna. |
CMOPT_AI_CHATKIT_BETA_INSTRUCTIONSBeta chatbot instructions | textarea | — | System instructions for the beta chatbot, used as written; paste a site's Agent Builder prompt here. Blank uses a built-in prompt that limits answers to what site_search returns, with the shared prompt-injection hardening appended. Today's date is appended in both cases. |
CMOPT_AI_CHATKIT_BETA_DOMAIN_KEYBeta chatbot domain key | text | — | ChatKit domain key for this site's domain, from the domain allowlist in the OpenAI organization's security settings. ChatKit does not check it on localhost; everywhere else the widget will not load without it. |
CMOPT_AI_CHATKIT_BETA_REASONING_EFFORTBeta chatbot reasoning effort | text | low | Reasoning effort sent to the model, e.g. low or medium. Leave blank for models that do not reason, such as the gpt-4.1 family. |
CMOPT_AI_CHATKIT_BETA_REASONING_SUMMARYBeta chatbot thinking display | text | auto | Reasoning summary the model streams, shown by ChatKit as its thinking: auto, concise or detailed. Blank hides it. Ignored when reasoning effort is blank. |
CMOPT_AI_CHATKIT_BETA_GUARDRAILSBeta chatbot jailbreak guardrail | checkbox | 1 | Screen each message with the Jailbreak check from OpenAI's guardrails library (0.7 confidence threshold) before answering. A flagged message, or a check that fails to run, gets a fixed refusal. Accepted values: |
CMOPT_AI_CHATKIT_BETA_GUARDRAIL_MODELBeta chatbot guardrail model | text | gpt-4.1-mini | Model for the jailbreak check. The API key's project must have access to it: when the check cannot run, every message is refused. Blank uses gpt-4.1-mini. |
CMOPT_AI_CHATKIT_BETA_SITE_SUMMARYBeta chatbot site_summary tool | checkbox | — | Also offer the model the site_summary tool, which runs the RAG summary. Off by default: site_search already returns full documents. Accepted values: |
CMOPT_AI_CHATKIT_BETA_GREETINGBeta chatbot greeting | text | — | Heading on the chatbot's start screen, in the block and the run-of-site popup. Blank keeps ChatKit's "What can I help with today?". |
CMOPT_AI_CHATKIT_BETA_SEARCH_DESCRIPTIONBeta chatbot site_search description | textarea | — | Tells the model what site_search searches and how to use it, in place of the built-in description, which is written for the GPS Insight knowledge base (its product launch calendar, brand prefixes and event search). Set it on any other site, for example: Search this site's film posts and return the full text of the best matches. The tool's arguments are unchanged. Blank keeps the built-in description. |
Run-of-site chatbot popup
Options for the beta chatbot popup shown on every page. They are available when the beta chatbot is switched on.
| Option | Type | Default | Description |
|---|---|---|---|
CMOPT_CHATBOT_RUNOFSITE_POPUPRun-of-site chatbot popup | checkbox | — | Show logged-in users a chat button in the bottom right corner of every front-end page. The button opens the beta chatbot in a narrow floating window, which a second button switches to a wide view covering nearly the whole screen. The conversation, and whether the window is open or wide, carry over as the user moves from page to page in the same browser tab, and are forgotten when the tab is closed. The chatbot itself loads only once the window is opened. Visitors who are not logged in see it only when CMOPT_CHATBOT_RUNOFSITE_POPUP_PUBLIC is on. Accepted values: |
CMOPT_CHATBOT_RUNOFSITE_POPUP_PUBLICShow the popup to visitors who are not logged in | checkbox | — | Off by default, so only logged-in users see the chat button. On, every visitor sees it. A visitor who is not logged in is identified by a guest cookie, as with the chatbot block, and every chat counts against CMOPT_AI_API_LIMIT_30SEC and CMOPT_AI_API_LIMIT_HOUR, so set those before opening the popup to the public. Has no effect unless CMOPT_CHATBOT_RUNOFSITE_POPUP is on. Accepted values: |
CMOPT_CHATBOT_RUNOFSITE_POPUP_OPENOpen the popup by default | checkbox | — | Open the chat window on the first page a visitor views in a browser tab, rather than waiting for them to click the chat button. Once they close it, it stays closed as they move around the site in that tab; a new tab opens it again. On screens 600 px wide or less it stays closed, since the window there covers the whole screen. Opening the window loads ChatKit, so with this on every first page view in a tab loads it. Has no effect unless CMOPT_CHATBOT_RUNOFSITE_POPUP is on. Accepted values: |
Contact Form 7 suggested replies
Options for the AI-drafted suggested reply added to contact form notification emails. These options are available only when Contact Form 7 is active.
| Option | Type | Default | Description |
|---|---|---|---|
CMOPT_AI_CF7_SYSTEM_PROMPTCF7 system prompt | textarea | — | Instructions telling the model how to draft a suggested reply to a contact form enquiry. Seeded with a default support-assistant prompt on first activation. |
CMOPT_AI_CF7_USER_PROMPTCF7 user prompt template | textarea | Visitor inquiry:
%s
Context from our site:
%s | Template combining the visitor's enquiry and the retrieved context. The first %s is the enquiry; the second is the context. |
CMOPT_AI_CF7_NUM_ARTICLESCF7 articles retrieved | number | 5 | How many articles are retrieved as context when drafting a suggested reply. |
CMOPT_AI_CF7_POST_TYPESCF7 searched post types | text | — | Comma-separated post types used for context. Leave empty to inherit CMOPT_AI_POST_TYPES. |
CMOPT_AI_CF7_LABELCF7 suggestion label | text | AI generated suggested response: | Heading printed above the suggested reply in the admin notification email. |
CMOPT_AI_CF7_TIMEOUTCF7 request timeout | number | 20 | Timeout in seconds for the OpenAI request. Form submission is synchronous, so keep this low enough to stay responsive. |
