Abilities API: Add the core/content-query ability.
Adds a read-only core/content-query ability that returns a page of the posts of one post type, optionally filtered by IDs, slugs, status, author, or parent. Until now, Core had no ability to read posts. The code lives in the new private WP_Abilities_Content class, and the ability is registered in a new content category.
Post types opt in with the new show_in_abilities argument of register_post_type(), which defaults to false. Only true exposes a post type, and the post and page post types set it.
Developed in https://github.com/WordPress/ai/pull/739 and https://github.com/WordPress/wordpress-develop/pull/12195.
Props jorgefilipecosta, gziolo, peterwilsoncc, ovidiu-galatan, justlevine, ugyensupport, dkotter, jason_the_adams, jasonbahl, jeffpaul.
Fixes #66268.
Javascript required
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Ticket #66268 (Add `core/content-query` ability) closed | 0 | 9.11 | 16-10-2026 |
| 2 | Ticket #66325 (Abilities API: Allow abilities to declare required capabilities) created | 0 | 6.02 | 16-10-2026 |
| 3 | WordPress Abilities API入門|基本的な使い方を解説 | 0 | 12.98 | 30-07-2026 |
| 4 | Adding an MCP Server to the WordPress Core Development Environment | 0 | 6.56 | 08-04-2026 |
| 5 | Changeset [64413]: Widgets: Use booleans in Categories widget arguments. The Categories ... | 0 | 7.44 | 16-10-2026 |
| 6 | Changeset [64402]: Rewrite Rules: Add support for random content redirects. Introduce a ... | 0 | 5.75 | 16-10-2026 |
| 7 | Ticket #62762 (WP_Widget_Categories::widget(): use int or bool for $cat_args values ...) closed | 0 | 6.91 | 16-10-2026 |
| 8 | Ticket #66327 (REST API: Add action-set-homepage and action-set-posts-page links to pages) created | 0 | 9.83 | 16-10-2026 |
| 9 | Filtering registered abilities with wp_get_abilities() in WordPress 7.1 | 0 | 11.33 | 05-08-2026 |
| 10 | A unified public exposure flag for Abilities in WordPress 7.1 | 0 | 10.01 | 04-08-2026 |