wp_get_entity_view_config_hook_name()WP 7.1.0

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

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.

No Hooks.

Returns

string. The filter name.

Usage

wp_get_entity_view_config_hook_name( $kind, $name );
$kind(string) (required)
The entity kind (e.g. postType).
$name(string) (required)
The entity name (e.g. page).

Changelog

Since 7.1.0 Introduced.

wp_get_entity_view_config_hook_name() code WP 7.1

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