Title: wp_get_entity_view_config_hook_name
Published: August 20, 2026

---

# wp_get_entity_view_config_hook_name( string $kind, string $name ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#wp--skip-link--target)

Builds the name of the dynamic filter that provides the view configuration for an
entity.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#description)󠁿

The entity kind and name are embedded in the hook name lowercased, so the hook follows
the WordPress convention of lowercase hook names regardless of how the entity identifiers
are spelled: the `postType`/`page` entity maps to the `get_entity_view_config_posttype_page`
hook.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#parameters)󠁿

 `$kind`stringrequired

The entity kind (e.g. `postType`).

`$name`stringrequired

The entity name (e.g. `page`).

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#return)󠁿

 string The filter name.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#source)󠁿

    ```php
    function wp_get_entity_view_config_hook_name( $kind, $name ) {
    	return strtolower( "get_entity_view_config_{$kind}_{$name}" );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/view-config.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/view-config.php#L30)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/view-config.php#L30-L32)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_View_Config_Data::apply_filters()](https://developer.wordpress.org/reference/classes/wp_view_config_data/apply_filters/)`wp-includes/class-wp-view-config-data.php` |

Applies the entity view configuration filter and returns the result.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_get_entity_view_config_hook_name/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.1.0](https://developer.wordpress.org/reference/since/7.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_get_entity_view_config_hook_name%2F)
before being able to contribute a note or feedback.