wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_entity_view_config_hook_name › WordPress Function

Since7.1.0
已弃用n/a
› wp_get_entity_view_config_hook_name ( $kind, $name )
参数: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Required: Yes
  • (string) $name The entity name (e.g. `page`).
    Required: Yes
返回:
  • (string) The filter name.
定义在:
文档:

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.


源码

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