Linux 软件免费装
Banner图

Query All The Post Types

开发者 GeekStreetWP
更新时间 2026年4月10日 22:48
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2
版权网址: 版权信息

标签

taxonomy custom post types ai content types developer tools

下载

1.4 1.9.1 1.7 1.7.1 1.8 1.9.3 1.9.4 1.0 1.2 1.3 1.7.2 1.8.1 1.9.2 2.0.0 2.0.1 2.1.0 1.1 1.5 1.6 1.6.1 1.9 2.2.0

详情介绍:

Query All The Post Types is a lightweight developer tool that auto-detects every registered post type on your WordPress site and displays comprehensive information about each one. Post types are automatically grouped by origin. No configuration required. WooCommerce store owners: All of your core WooCommerce post types (products, orders, coupons, subscriptions, etc.) are grouped in a dedicated WooCommerce tab for easy access. Developers and AI users: As of version 2.1, Query All The Post Types now registers every post type as a discoverable entry in the WordPress Abilities API introduced in WordPress 6.9. Any authenticated tool, such as an MCP client, an AI assistant, or a custom admin dashboard, can query your site and get a complete, structured inventory of every post type, what it supports, and how it's configured. As of version 2.2, QATP includes a built-in API Explorer so you can browse, query, and share your site's post type data directly from the WordPress admin without writing any code. Which makes building Custom Post Types easier and verifying the production site has all of the data needed. Features Post Type Groups Data Displayed Per Post Type

安装:

  1. Upload the query-all-the-post-types folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu
  3. Navigate to Tools > Query Post Types

屏幕截图:

  • Post type card with settings, supports, and taxonomies
  • WooCommerce tab with purple-branded styling
  • WP Abilities API Endpoint Example
  • API Explorer with ecosystem pills and ability cards
  • API Explorer with multiple abilities selected and Command Reference populated

升级注意事项:

2.2.0 Adds the API Explorer: browse, run, and share WordPress Ability commands directly from your admin. Select post types across any ecosystem, copy ready-made curl and WP-CLI commands, and share a URL that opens the same view for any admin on your site. 2.1.0 Adds WordPress Abilities API integration. Every post type on your site is now discoverable by AI tools and authenticated admin clients via the REST API. Requires WordPress 6.9+ for this feature. All existing features work unchanged on earlier versions. 2.0.0 Major update. The plugin page has moved to Tools > Query Post Types (previously had its own top-level menu). New tabbed interface, WooCommerce support, and comprehensive post type data display.

常见问题:

How does the plugin detect post types?

It uses the WordPress core function get_post_types() to retrieve all registered post types at runtime. Nothing is hardcoded. Any post type registered by any plugin, theme, or WordPress core will appear automatically.

Where do I find the plugin page?

Go to Tools > Query Post Types in your WordPress admin dashboard.

I updated and can't find the plugin anymore!

In version 2.0, the plugin moved from its own top-level admin menu to the Tools menu. Look for Tools > Query Post Types.

Why don't I see View All / Add New buttons on some post types?

These buttons only appear for post types that have show_ui set to true. Internal post types without an admin interface won't have these action buttons.

Where are my WooCommerce post types?

Look for the WooCommerce tab. All WooCommerce-related post types (products, orders, coupons, subscriptions, etc.) are grouped there for easy access. The tab only appears when WooCommerce is active.

Can I use this on a production site?

Yes. The plugin is read-only and does not modify any data. It only displays information about registered post types.

Does this plugin work with multisite?

Yes. Each site in a multisite network will display its own registered post types.

What is the WordPress Abilities API?

The Abilities API is a feature introduced in WordPress 6.9 that lets plugins register machine-readable declarations about what a site can do. QATP uses it to expose your post type architecture to AI tools, MCP clients, and authenticated admin dashboards without any additional configuration.

Do I need WordPress 6.9 for the Abilities API feature?

Yes. The Abilities API integration requires WordPress 6.9 or later. On earlier versions, everything else in QATP works normally. The Abilities API registration is silently skipped.

Is the Abilities API data public?

No. The endpoint requires administrator-level authentication (manage_options). Anyone who requests the URL without being logged in as an admin will receive a 401 error. This is by design. Post type data can reveal details about your site's plugin stack.

What is the API Explorer?

The API Explorer is a built-in interface added in version 2.2 that lets you browse, run, and copy commands for any WordPress Ability registered by QATP, directly from your WordPress admin. No code required. See the API Explorer section above for full details.

Can I share an API Explorer link with someone?

Yes. When you are in the Explorer with abilities selected, the URL updates to reflect your current state. Paste that URL in Slack or send it to a teammate and they will open the same view with the same selections already loaded.

Why does the REST URL require a nonce?

WordPress uses nonces to verify that REST API requests made from a browser are intentional and authenticated. The nonce is tied to your current login session. The REST URL links in the Command Reference include a nonce automatically so they work when you click them in the browser. For curl and other external clients, use Application Passwords instead.

The curl command in the Command Reference says "application_password" -- what do I replace it with?

Generate an Application Password from your WordPress profile under Users > Your Profile > Application Passwords. Use the generated password in place of application_password. Your WordPress username is already pre-filled in the command.

How does the shareable URL work?

When you are in the Explorer, the URL in your browser updates automatically using a hash fragment to encode your current mode and selected abilities. No data is sent to any server. The hash is parsed locally in your browser when the page loads, restoring your exact view. Anyone with admin access on the same WordPress site can open the URL and land in the same state.

更新日志:

2.2.0 API Explorer Multi-Select Query Builder Command Reference Shareable URL State Admin UI Code Quality 2.1.0 2.0.1 2.0.0 1.9.4 1.9.3 1.9.2 1.9.1 1.9 1.8.1 1.8 1.0