feat: add Writing Instructions setting for LLM system prompt (v0.4.4)

New textarea in Content settings lets admins provide custom instructions
appended to the writer's system prompt. Steers style, structure, voice,
and formatting without editing code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
peptiderepo
2026-04-19 17:01:54 +07:00
parent 65560ea0b5
commit b0cc93669d
6 changed files with 66 additions and 19 deletions

View File

@@ -21,6 +21,7 @@ class PRAutoBlogger_Content_Request {
private int $max_word_count;
private string $niche_description;
private array $topic_exclusions;
private string $writing_instructions;
public function __construct(
PRAutoBlogger_Article_Idea $idea,
@@ -29,15 +30,17 @@ class PRAutoBlogger_Content_Request {
int $min_word_count,
int $max_word_count,
string $niche_description,
array $topic_exclusions = []
array $topic_exclusions = [],
string $writing_instructions = ''
) {
$this->idea = $idea;
$this->pipeline_mode = $pipeline_mode;
$this->tone = $tone;
$this->min_word_count = $min_word_count;
$this->max_word_count = $max_word_count;
$this->niche_description = $niche_description;
$this->topic_exclusions = $topic_exclusions;
$this->idea = $idea;
$this->pipeline_mode = $pipeline_mode;
$this->tone = $tone;
$this->min_word_count = $min_word_count;
$this->max_word_count = $max_word_count;
$this->niche_description = $niche_description;
$this->topic_exclusions = $topic_exclusions;
$this->writing_instructions = $writing_instructions;
}
public function get_idea(): PRAutoBlogger_Article_Idea {
@@ -67,4 +70,8 @@ class PRAutoBlogger_Content_Request {
public function get_topic_exclusions(): array {
return $this->topic_exclusions;
}
public function get_writing_instructions(): string {
return $this->writing_instructions;
}
}