| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Entity view configuration API. Builds the default view configuration for an entity and exposes it through the dynamic `get_entity_view_config_{$kind}_{$name}` filter so core and third parties can provide the configuration for a specific entity.
| File Size: | 772 lines (20 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file wp-admin/includes/plugin.php |
| _wp_get_default_post_type_form() X-Ref |
| Builds the default `form` configuration for post types that don't provide their own. It is a sensible default for `post`, `page`, and custom post types alike rather than being tailored per type. Post types that need a different shape can replace it entirely with a dedicated `form` through their own filter callback. It is intentionally NOT gated by `supports`. The registered fields are the single source of truth for what applies: each field is registered for a post type based on its `supports` (and related flags such as `theme_supports`), and the editor drops any form field whose definition is absent or whose `isVisible` returns `false`. return: array The default form configuration. |
| wp_get_entity_view_config( $kind, $name ) X-Ref |
| Returns the view configuration for the given entity. Builds the default configuration shared by all entities and then exposes it through the dynamic `get_entity_view_config_{$kind}_{$name}` filter so that core and third parties can provide the configuration for a specific entity. param: string $kind The entity kind (e.g. `postType`). param: string $name The entity name (e.g. `page`). return: array { |
| _wp_get_entity_view_config_post_type_page( $data ) X-Ref |
| Provides the view configuration for the `page` post type. param: WP_View_Config_Data $data The view configuration container for the entity. return: WP_View_Config_Data The updated view configuration container. |
| _wp_get_entity_view_config_post_type_wp_block( $data ) X-Ref |
| Provides the view configuration for the `wp_block` post type. param: WP_View_Config_Data $data The view configuration container for the entity. return: WP_View_Config_Data The updated view configuration container. |
| _wp_get_entity_view_config_post_type_wp_template_part( $data ) X-Ref |
| Provides the view configuration for the `wp_template_part` post type. param: WP_View_Config_Data $data The view configuration container for the entity. return: WP_View_Config_Data The updated view configuration container. |
| _wp_get_entity_view_config_post_type_wp_template( $data ) X-Ref |
| Provides the view configuration for the `wp_template` post type. param: WP_View_Config_Data $data The view configuration container for the entity. return: WP_View_Config_Data The updated view configuration container. |
| Generated : Tue Jul 14 08:20:16 2026 | Cross-referenced by PHPXref |