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



wp_get_registered_entity_fields › WordPress Function

Depuis7.2.0
Dépréciéen/a
› wp_get_registered_entity_fields ( $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:
  • (array[]) The list of registered field definitions, in registration
    order. Empty until the `init` action has completed: a
    read before then is refused.
Défini(e) dans:
Codex:

Returns the fields registered for the given entity.



Source

function wp_get_registered_entity_fields( $kind, $name ) {
	return WP_Entity_Fields_Registry::get_instance()->get_registered( $kind, $name );
}