wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_entity_field_collection_fields › WordPress Function

Desde7.2.0
Obsoleton/a
› wp_get_entity_field_collection_fields ( $directory )
Parâmetros:
  • (string) $directory The directory of the collection.
    Required: Yes
Retorna:
  • (array<string,array>) The fields of the collection, keyed by id, in
    the alphabetical order of their folders.
Definido em:
Codex:

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



Fonte

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