wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_entity_field_collection_fields › WordPress Function

Since7.2.0
已弃用n/a
› wp_get_entity_field_collection_fields ( $directory )
参数:
  • (string) $directory The directory of the collection.
    Required: Yes
返回:
  • (array<string,array>) The fields of the collection, keyed by id, in
    the alphabetical order of their folders.
定义在:
文档:

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



源码

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