wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_entity_view_config_hook_name › WordPress Function

Depuis7.1.0
Dépréciéen/a
› wp_get_entity_view_config_hook_name ( $kind, $name )
Paramètres: (2)
  • (string) $kind The entity kind (e.g. `postType`).
    Requis: Oui
  • (string) $name The entity name (e.g. `page`).
    Requis: Oui
Retourne:
  • (string) The filter name.
Défini(e) dans:
Codex:

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.


Source

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