[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> view-config.php (summary)

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: 783 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 wp-admin/includes/plugin.php

Defines 6 functions

  wp_get_entity_view_config()
  _wp_get_entity_view_config_post_type_page()
  _wp_get_entity_view_config_post_type_post()
  _wp_get_entity_view_config_post_type_wp_block()
  _wp_get_entity_view_config_post_type_wp_template_part()
  _wp_get_entity_view_config_post_type_wp_template()

Functions
Functions that are not part of a class:

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( $config )   X-Ref
Provides the view configuration for the `page` post type.

param: array $config {
return: array The filtered view configuration.

_wp_get_entity_view_config_post_type_post( $config )   X-Ref
Provides the view configuration for the `post` post type.

param: array $config {
return: array The filtered view configuration.

_wp_get_entity_view_config_post_type_wp_block( $config )   X-Ref
Provides the view configuration for the `wp_block` post type.

param: array $config {
return: array The filtered view configuration.

_wp_get_entity_view_config_post_type_wp_template_part( $config )   X-Ref
Provides the view configuration for the `wp_template_part` post type.

param: array $config {
return: array The filtered view configuration.

_wp_get_entity_view_config_post_type_wp_template( $config )   X-Ref
Provides the view configuration for the `wp_template` post type.

param: array $config {
return: array The filtered view configuration.



Generated : Wed Jun 24 08:20:11 2026 Cross-referenced by PHPXref