wp_get_post_types is one of 162 MCP tools included in Easy MCP AI β€” the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin β†’

wp_get_post_types

Read-only

Description

Custom post types registered by plugins like WooCommerce or CPT UI change what your AI can create β€” Easy MCP AI exposes the full list of registered types so your AI client knows exactly which content handles are available before it tries to write or query anything. This orientation call is often the first thing a client like Cursor or Claude Code makes when connecting to an unfamiliar WordPress site. Easy MCP AI's 162-tool surface covers built-in and custom post types equally, treating every registered type as a first-class target.

See it in action

Claude Desktop β€” MCP Connection
πŸ‘€
What custom post types are registered on this WordPress site?
πŸ€–
Tool called wp_get_post_types
{
  "total": 6,
  "post_types": [
    { "slug": "post", "label": "Posts", "public": true },
    { "slug": "page", "label": "Pages", "public": true },
    { "slug": "product", "label": "Products", "public": true },
    { "slug": "attachment", "label": "Media", "public": false }
  ]
}

Found 6 registered post types on your installation.

Example Use Cases & Sample Prompts

  1. Discovering content types
    • Prompt: β€œWhat custom post types are registered on this WordPress site?”
  2. Pre-content creation
    • Prompt: β€œBefore I start creating content, show me all available post types including custom ones.”
  3. Plugin audit
    • Prompt: β€œWhich plugins on this site have registered custom post types?”
  4. Migration planning
    • Prompt: β€œList all post types so I can understand what types of content exist before migrating to a new structure.”
  5. API exploration
    • Prompt: β€œWhat post types are available via the REST API on this site?”

Frequently Asked Questions

What does wp_get_post_types do?

Custom post types registered by plugins like WooCommerce or CPT UI change what your AI can create β€” Easy MCP AI exposes the full list of registered types so your AI client knows exactly which content handles are available before it tries to write or query anything. This orientation call is often the first thing a client like Cursor or Claude Code makes when connecting to an unfamiliar WordPress site. Easy MCP AI's 162-tool surface covers built-in and custom post types equally, treating every registered type as a first-class target.

How do I use wp_get_post_types with my AI assistant?

Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language β€” for example: "What custom post types are registered on this WordPress site?"

Do I need Easy MCP AI to use wp_get_post_types?

Yes. wp_get_post_types is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately β€” no coding required.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_get_post_types and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides β†’

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates β€” be the first to know what's next.

No spam, unsubscribe anytime.