# WordPress

Manage WordPress: posts, pages, media, comments, categories, tags, users. Exposes **41 actions** covering the full API surface
the agent needs - read and write.

## What it can do

| Method | What it does |
| --- | --- |
| `wordpress_posts_list` | List posts with optional filtering and pagination - GET /posts. |
| `wordpress_post_create` | Create a new post - POST /posts. |
| `wordpress_post_get` | Get a single post - GET /posts/&#123;id&#125;. |
| `wordpress_post_update` | Update an existing post - POST /posts/&#123;id&#125;. |
| `wordpress_post_delete` | Delete a post - DELETE /posts/&#123;id&#125;. |
| `wordpress_pages_list` | List pages (same CRUD as posts) - GET /pages. |
| `wordpress_page_create` | Create a new page - POST /pages. |
| `wordpress_page_get` | Get a single page - GET /pages/&#123;id&#125;. |
| `wordpress_page_update` | Update a page - POST /pages/&#123;id&#125;. |
| `wordpress_page_delete` | Delete a page - DELETE /pages/&#123;id&#125;. |
| `wordpress_media_list` | List media (images, files, etc.) - GET /media. |
| `wordpress_media_get` | Get media metadata - GET /media/&#123;id&#125;. |
| `wordpress_media_delete` | Delete media file - DELETE /media/&#123;id&#125;. |
| `wordpress_users_list` | List users - GET /users. |
| `wordpress_user_get` | Get user details - GET /users/&#123;id&#125;. |
| `wordpress_user_update` | Update user profile - POST /users/&#123;id&#125;. |
| `wordpress_categories_list` | List categories - GET /categories. |
| `wordpress_category_create` | Create a category - POST /categories. |
| `wordpress_category_get` | Get category details - GET /categories/&#123;id&#125;. |
| `wordpress_category_update` | Update a category - POST /categories/&#123;id&#125;. |
| `wordpress_category_delete` | Delete a category - DELETE /categories/&#123;id&#125;. |
| `wordpress_tags_list` | List tags - GET /tags. |
| `wordpress_tag_create` | Create a tag - POST /tags. |
| `wordpress_tag_get` | Get tag details - GET /tags/&#123;id&#125;. |
| `wordpress_tag_update` | Update a tag - POST /tags/&#123;id&#125;. |
| `wordpress_tag_delete` | Delete a tag - DELETE /tags/&#123;id&#125;. |
| `wordpress_comments_list` | List comments - GET /comments. |
| `wordpress_comment_create` | Create a comment - POST /comments. |
| `wordpress_comment_get` | Get comment details - GET /comments/&#123;id&#125;. |
| `wordpress_comment_update` | Update a comment - POST /comments/&#123;id&#125;. |
| `wordpress_comment_delete` | Delete a comment - DELETE /comments/&#123;id&#125;. |
| `wordpress_revisions_list` | List post revisions (read-only) - GET /posts/&#123;post_id&#125;/revisions. |
| `wordpress_revision_get` | Get a specific post revision - GET /posts/&#123;post_id&#125;/revisions/&#123;revision_id&#125; (read-only). |
| `wordpress_search` | Search across posts, users, and terms - GET /search. |
| `wordpress_taxonomies_list` | List registered taxonomies (category, post_tag, etc.) - GET /taxonomies (read-only). |
| `wordpress_taxonomy_get` | Get taxonomy details - GET /taxonomies/&#123;slug&#125; (read-only). |
| `wordpress_post_types_list` | List post types (post, page, etc.) - GET /types (read-only). |
| `wordpress_post_type_get` | Get post type details - GET /types/&#123;slug&#125; (read-only). |
| `wordpress_post_statuses_list` | List post statuses (publish, draft, pending, etc.) - GET /statuses (read-only). |
| `wordpress_themes_list` | List installed themes - GET /themes (read-only). |
| `wordpress_settings_get` | Get WordPress site settings (title, description, url, language, timezone, etc.) - GET /settings (read-only, limited write to certain fields via admin). |

## How to get credentials

This connector uses an **API key / token**. Create one in the provider
dashboard, then paste it into FlyMyAI:

- **`WORDPRESS_SITE_URL`** - Your WordPress site URL, e.g. https://example.com .
- **`WORDPRESS_USERNAME`** - WordPress username.
- **`WORDPRESS_APP_PASSWORD`** - WP Admin - Users - Profile - Application Passwords. (https://wordpress.org/documentation/article/application-passwords/)

## Fields to fill in FlyMyAI

| FlyMyAI field | Where it comes from |
| --- | --- |
| `WORDPRESS_SITE_URL` | Your WordPress site URL, e.g. https://example.com . |
| `WORDPRESS_USERNAME` | WordPress username. |
| `WORDPRESS_APP_PASSWORD` | WP Admin - Users - Profile - Application Passwords. |

## Troubleshooting

- **`401 Unauthorized` / `403 Forbidden`** - the token is wrong, expired, or missing a required scope - regenerate it.
- **`429 Too Many Requests`** - you hit the provider rate limit; retry after a short backoff.
- **Unexpected `4xx` on writes** - double-check required fields; the agent confirms before write actions.

## Links

- [WordPress API documentation](https://developer.wordpress.org/rest-api/reference)
