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



wp_get_entity_field_collection_fields › WordPress Function

Depuis7.2.0
Dépréciéen/a
› wp_get_entity_field_collection_fields ( $directory )
Paramètres:
  • (string) $directory The directory of the collection.
    Requis: Oui
Retourne:
  • (array<string,array>) The fields of the collection, keyed by id, in
    the alphabetical order of their folders.
Défini(e) dans:
Codex:

Returns the fields of a field collection, see {@see WP_Entity_Fields_Registry::get_collection_fields()}.



Source

function wp_get_entity_field_collection_fields( $directory ) {
	return WP_Entity_Fields_Registry::get_instance()->get_collection_fields( $directory );
}