wp-view-config-api
Installation
SKILL.md
WordPress View Config API
WordPress 7.1 builds DataViews-style defaults for an entity through wp_get_entity_view_config(). Plugins contribute versioned patches with WP_View_Config_Data; they do not replace REST controllers, entity data, or authorization.
Choose the exact entity hook
The filter is dynamic and its kind/name segments are lowercased. Generate it instead of guessing:
$hook = wp_get_entity_view_config_hook_name( 'postType', 'book' );
// get_entity_view_config_posttype_book
For a REST-exposed book post type: