wp_get_entity_view_config_hook_name


wp_get_entity_view_config_hook_name ( $kind, $name )

Parameters:
  • (string) kind The entity kind (e.g. `postType`).
  • (string) name The entity name (e.g. `page`).
Returns:
  • (string) The filter name.
Defined at:

Description

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.

Related Functions

wp_get_entity_view_config, _wp_get_entity_view_config_posttype_page, _wp_get_entity_view_config_posttype_wp_block, _wp_get_entity_view_config_posttype_wp_template, _wp_get_entity_view_config_posttype_wp_template_part

Top Google Results

User discussions

wpseek mobile