wp-settings

wp-settings is a command for Claude Code from yojahny55/claude-wp-builder. It costs 13 tokens per session (883 once invoked), scanned A, original, MIT.

A command for adding extra fields, tabs, or sections to a WordPress theme’s settings page. The settings use ACF or SCF, tools for creating editable fields in WordPress.

In plain words
What is it for?
Use it to add settings for analytics codes, contact details, social platforms, custom scripts, maintenance mode, or color overrides.
Why use it?
It lets a theme’s settings grow beyond its default options while following the project’s existing structure and naming patterns.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the claude-wp-builder plugin — 15 skills, 28 commands, 15 agents shipped together

Good fit Use it to add settings for analytics codes, contact details, social platforms, custom scripts, maintenance mode, or color overrides.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yojahny55/claude-wp-builder/wp-settings
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 28 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-settings

README.md
[![agentmods](https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-settings.svg)](https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-settings)
Your own site
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-settings"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-settings.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00883
Opus 5 $0.00006 $0.00441
Sonnet 5 $0.00003 $0.00177
Haiku 4.5 $0.00001 $0.00088

Measured 7d ago against content hash 8892474ae098, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wp-settings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/wp-settings.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WP Settings — Extend Theme Settings Page

Add new fields, tabs, or sections to the theme's ACF/SCF settings page.

Step 1: Read Project Context

Read .claude/CLAUDE.md to extract:

  • Function prefix (e.g., kairo_)
  • Languages (primary + secondary)
  • Theme directory path

If .claude/CLAUDE.md does not exist, tell the user to run /wp-init first.

Step 2: Read Existing Settings

Read fields/settings.php in the theme directory to understand:

  • Existing tabs and their fields
  • Field naming patterns used
  • Location rules
  • Current structure and organization

If the file does not exist, inform the user that the starter theme's default settings file is missing and offer to create one from scratch.

Step 3: Get Requirements

If $ARGUMENTS is provided, use it as the description of what settings to add.

If $ARGUMENTS is empty, ask the user:

  • What settings do they need to add?
  • Should these go in a new tab or extend an existing tab?
  • Examples: analytics codes, additional contact fields, social platforms, custom scripts, maintenance mode toggle, color overrides

Step 4: Dispatch wp-acf Agent

Dispatch the wp-acf agent with these instructions:

Update fields/settings.php in the theme directory to add the following settings:

Requirements from user: <paste user requirements or $ARGUMENTS>

Rules:

  1. DO NOT remove or modify existing fields — only ADD new ones
  2. If adding a new logical group, create a new Tab field to organize it
  3. For ALL text, textarea, and wysiwyg fields, create bilingual variants:
    • <field_name>_en (English variant)
    • <field_name>_es (Spanish variant)
    • (adjust languages to match project config)
  4. Follow the existing field naming convention in the file
  5. Use appropriate field types: text, textarea, wysiwyg, image, url, true_false, select, repeater, etc.
  6. Add helpful instructions/descriptions to fields so the client understands what each one does
  7. All fields should have field_ prefixed keys
  8. Ensure the field group location rule keeps pointing to the options page
  9. After editing the file, invalidate the group's Local JSON so the change re-bootstraps (the loader skips PHP for groups that already have JSON): delete acf-json/group_settings.json and, if the site imported it, run $WP eval "acf_delete_field_group('group_settings');". The next WP load regenerates acf-json/group_settings.json from the edited PHP. This discards any manual dashboard edits to the settings group — intended for a code-driven change.

Existing settings.php content:

<paste current file content>

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 95 lines · 13 tokens per session scan A 8892474ae098

Subscribe to this mod's changes

wp-settings is a command published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.