wp_get_entity_view_config_hook_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.
Хуков нет.
Возвращает
string. The filter name.
Использование
wp_get_entity_view_config_hook_name( $kind, $name );
- $kind(строка) (обязательный)
- The entity kind (e.g.
postType). - $name(строка) (обязательный)
- The entity name (e.g.
page).
Список изменений
| С версии 7.1.0 | Введена. |
Код wp_get_entity_view_config_hook_name() wp get entity view config hook name WP 7.1.3
function wp_get_entity_view_config_hook_name( $kind, $name ) {
return strtolower( "get_entity_view_config_{$kind}_{$name}" );
}