wordpress-api-pro
WordPress REST API integration for managing posts, pages, media, and more on self-hosted WordPress sites. Use when you need to create, update, or retrieve WordPress content programmatically. Supports Gutenberg blocks, custom fields, featured images, and full CRUD operations. Works with any WordPress site (self-hosted or managed) that has REST API enabled (WordPress 4.7+). Authentication via Application Password (recommended) or Basic Auth. Use for publishing articles, updating content, managing media, batch operations, content migration, or any WordPress admin task via API.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/benkalsky/wordpress-api-proWhat This Skill Does
The wordpress-api-pro skill acts as a robust interface for interacting with any WordPress installation (4.7+) via its native REST API. It empowers users to automate content management tasks, including the creation, retrieval, and updating of posts, pages, and media files. Beyond basic CRUD operations, it supports advanced features such as Gutenberg block management, custom metadata, and featured image handling. The skill is designed for both single-site management and complex multi-site environments, providing a command-line wrapper that allows users to execute batch updates or content migrations across entire networks of sites efficiently.
Installation
To install this skill, use the following command in your terminal:
clawhub install openclaw/skills/skills/benkalsky/wordpress-api-pro
Once installed, you should configure your site credentials. It is highly recommended to create an Application Password in your WordPress user profile (under /wp-admin/profile.php) for secure authentication. You can either pass these credentials via command arguments or set them as environment variables (WP_URL, WP_USERNAME, WP_APP_PASSWORD) to streamline your automated workflows.
Use Cases
This tool is ideal for content creators and site administrators managing multiple WordPress properties. Primary use cases include:
- Batch Content Publishing: Simultaneously updating article status or content across a fleet of blogs.
- Migration and Syncing: Moving content between staging and production environments using scripts.
- Admin Automation: Automating repetitive tasks like updating meta tags, seo_score, or clearing cache fields across custom post types.
- Media Management: Programmatically uploading media to WordPress galleries or linking images to posts.
Example Prompts
- "Publish a new post on my digitizer-studio site with the title 'Weekly Update' and the provided content markdown."
- "Update the 'seo_score' meta field to '95' for post ID 123 on all sites in the 'marketing' group."
- "Fetch the latest 5 posts from my primary site and summarize the content in a table for my team review."
Tips & Limitations
- Security: Always use Application Passwords rather than your main login password. Never commit your
config/sites.jsonfile to public version control. - Dependencies: Ensure your WordPress site has REST API access enabled (this is default in modern WP versions) and that your hosting provider doesn't block API requests.
- Performance: For bulk updates, the batch script is significantly faster than individual API calls; use the group functionality in
./wp.shfor large-scale operations to minimize overhead.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-benkalsky-wordpress-api-pro": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution