1. Where Per-Post Overrides Are Stored #
Docs:
- Per-post meta key:
_davix_aiwriter_overrides.
Fields inside:
max_tokens(int)temperature(float)tone(string)target_length(int)insert_behavior(string)default_language(string)
These values are localized into the editor via enqueue_block_editor_assets() so the sidebar can use them.
2. Editing Per-Post Settings (Conceptual Flow) #
In the editor:
- Open a post/page in the block editor.
- Open Davix AI Writer sidebar.
- There is typically a Per-post settings panel where you can tweak:
- Max tokens for this post.
- Temperature override.
- Tone for this article.
- Target length.
- Insert behavior.
- Default language.
(Exact UI follows your implementation, but these fields are explicitly documented and passed down to the script.)
image IMAGE PLACEHOLDER: Screenshot of AI Writer sidebar’s “Post settings” panel with fields for max tokens, temperature, tone, target length, insert behavior, and default language. IMAGE image
3. max_tokens (Per Post) #
Field: _davix_aiwriter_overrides.max_tokens
- Overrides the global token limit just for this post.
Usage:
- Increase for long, detailed articles.
- Decrease for short blurbs or to control cost.
4. temperature (Per Post) #
Field: _davix_aiwriter_overrides.temperature
- Overrides global temperature.
- Useful when:
- Most posts use neutral tone.
- A specific post needs more creative or more strict control.
5. tone (Per Post) #
Field: _davix_aiwriter_overrides.tone
- Stores which tone preset this post should use by default.
- When AI Writer is called, it passes this tone to the model along with the content.
6. target_length (Per Post) #
Field: _davix_aiwriter_overrides.target_length
- Indicates the desired length for generated or rewritten content for this specific post.
- The sidebar uses this when sending prompts to the /generate endpoint.
7. insert_behavior (Per Post) #
Field: _davix_aiwriter_overrides.insert_behavior
- Controls how AI-generated content is inserted:
- For example (conceptual), replace selection vs append below vs insert at cursor (the exact modes are determined in the code).
- AI Writer JS uses this value to decide what to do with the returned text.
8. default_language (Per Post) #
Field: _davix_aiwriter_overrides.default_language
- Defines which language AI should use by default for this article.
- Especially useful on multi-language sites or for posts targeted at a specific audience.

