wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_entity_field_collection_fields › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_get_entity_field_collection_fields ( $directory )
Parametry:
  • (string) $directory The directory of the collection.
    Wymagane: Tak
Powrót:
  • (array<string,array>) The fields of the collection, keyed by id, in
    the alphabetical order of their folders.
Zdefiniowane na:
Codex:

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



Źródło

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