wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_entity_field_collection_fields › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_get_entity_field_collection_fields ( $directory )
Parameters:
  • (string) $directory The directory of the collection.
    Required: Yes
Returns:
  • (array<string,array>) The fields of the collection, keyed by id, in
    the alphabetical order of their folders.
Defined at:
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 );
}