← Back to Tools Reference
Download Plugin
wp_get_post_types
Read-onlyDescription
Use this tool to retrieve all registered post types on your WordPress site, including built-in types like 'post' and 'page', as well as custom types added by plugins (e.g., 'product' from WooCommerce). Your AI uses this to understand what types of content are available and how to interact with them.
See it in action
Claude Desktop — MCP Connection
👤
What custom post types are registered on this WordPress site?
🤖
Calling Tool: wp_get_post_types
Done! I've used wp_get_post_types to complete that for you.
{"status": "success"} Example Use Cases & Sample Prompts
- Discovering content types
- Prompt: “What custom post types are registered on this WordPress site?”
- Pre-content creation
- Prompt: “Before I start creating content, show me all available post types including custom ones.”
- Plugin audit
- Prompt: “Which plugins on this site have registered custom post types?”
- Migration planning
- Prompt: “List all post types so I can understand what types of content exist before migrating to a new structure.”
- API exploration
- Prompt: “What post types are available via the REST API on this site?”
Access this tool today
Install the Easy MCP AI plugin to securely expose wp_get_post_types to Claude, ChatGPT, and more.