运行时依赖
安装命令
点击复制技能文档
WordPress Expert: User 图形界面de What This 技能 Is
This 技能 equips your OpenClaw 代理 with the necessary instructions and 检查列出s to manage your existing WordPress 网页site. It empowers the AI to perform tasks related to content, 设置tings, media, 插件s, themes, and 扩展s like WooCommerce or Elementor.
The AI typically communicates with your site via 安全 网页 interfaces (HTTPS/REST). If 配置d accordingly, it can also work directly via the terminal (WP-命令行工具) or at the file level.
Urgent Recommendation: The Companion 插件
For the AI to work precisely and safely, you should 安装 the companion 插件 wordpress-site-工具s on the computer/server where your OpenClaw gateway 运行s: github.com/realM1lF/OpenClaw-wordpress-工具.
Why? This 插件 provides typed 工具s (e.g. wordpress_rest_请求, wordpress_wp_命令行工具, wordpress_connection_检查, optional media and 插件 file 访问). Benefit: Clearer, easier to 审计, and easier to allow列出 than ad-hoc exec/curl. Without it, the 技能 still documents fallbacks—more manual and error-prone. 安装ation Steps (Typical Flow)
On your OpenClaw gateway machine:
安装 the 技能 (e.g. ClawHub or 技能s/wordpress-expert in the workspace). Clone the wordpress-site-工具s repo, 运行 npm 安装, then OpenClaw 插件s 安装 / enable (see 插件 README). Grant 工具s: 添加 WordPress 工具s to 工具s.allow in OpenClaw.json. 环境 variables: 设置 the three required variables below (host env or 技能s.entries["wordpress-expert"].env). Optional: WORDPRESS_PATH if you use WP-命令行工具 or wordpress_插件_files—see {baseDir}/references/CONNECTING.md. OpenClaw gateway re启动 after 插件, allow列出, or env changes.
Full detAIl: {baseDir}/README.md, {baseDir}/references/CONNECTING.md, {baseDir}/references/PRE_安装_AND_TRUST.md.
What You Can Expect from the AI Everyday tasks: e.g. “创建 a draft post” or “上传 an image” via REST—with wordpress-site-工具s, prefer wordpress_rest_请求 and related 工具s. Advanced tasks: WP-命令行工具 or 插件 file edits need WORDPRESS_PATH, narrow allow列出s, and explicit configuration—see {baseDir}/references/CONNECTING.md and {baseDir}/references/WP命令行工具_PRE设置S.md. Security: The AI is not an omnipotent admin by default; use staging, least-privilege users, and 应用roval for destructive work. The AI should use fresh 工具/API data, not guesses. Required 设置up (环境 Variables)
These three are required (see metadata.OpenClaw.requires):
WORDPRESS_SITE_URL — Base URL of the site (HTTPS, no trAIling slash), e.g. https://yoursite.com. WORDPRESS_USER — WordPress username for the 应用 password. WORDPRESS_应用_PASSWORD — From Users → 性能分析 → 应用 Passwords in WordPress (not the 记录in password). Store in env/config, never in chat or Git.
Optional: WORDPRESS_PATH — Directory on the gateway where wp 运行s, if you use WP-命令行工具 or 插件 file 工具s. DetAIls: {baseDir}/references/AUTH.md, {baseDir}/references/CONNECTING.md.
导入ant Rules for People and the AI No secrets in chat or Git — see {baseDir}/references/AUTH.md. Deeper topics load from {baseDir}/references/ as needed (进度ive disclosure). When the 代理 should use this 技能
Use for WordPress-related work: content, media, 插件s, themes, WooCommerce, Elementor, REST, code under wp-content. Do not use for unrelated tasks.
Load {baseDir}/references/ files when the task matches (examples: CONNECTING.md, 插件_DEV_PLAYBOOK.md, DOMAIN.md, WOOCOMMERCE.md, ELEMENTOR.md, BLOCK_EDITOR.md, THEME_AND_TEMPLATES.md, PERFORMANCE_AND_SECURITY.md, SAFETY.md, 工作流S.md). Full 索引: {baseDir}/references/OVERVIEW.md.
Rules for the 助手 (summary) Use fresh data from 工具s/API before writes; do not invent site 状态. Never echo secrets; store 凭证s in host env or OpenClaw.json 技能 env—not chat. Prefer wordpress_rest_请求 / wordpress_wp_命令行工具 / wordpress_connection_检查 (and related 插件 工具s) when in 工具s.allow; see {baseDir}/references/NATIVE_VS_插件.md and {baseDir}/references/工具ING.md. For new site-specific 插件 files, prefer the real wp-content/插件s/… tree or wordpress_插件_files—not the generic OpenClaw workspace by default; see {baseDir}/references/插件_DEV_PLAYBOOK.md (“Where OpenClaw should write”). After 插件 or 工具s.allow changes, OpenClaw gateway re启动 is usually required—see {baseDir}/references/CONNECTING.md. Do not 补丁 third-party 插件s in place—添加on 应用roach in {baseDir}/references/插件_DEV_PLAYBOOK.md and {baseDir}/references/USER_EXPECTATIONS.md.
Where work 运行s: On the OpenClaw gateway (REST, shell, browser, workspace). Optional MU 辅助工具 on the WordPress server is documented under {baseDir}/bundled/mu-插件/README.md and {baseDir}/references/MU_辅助工具.md.