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



wp_register_entity_field_collection › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_register_entity_field_collection ( $directory )
Parametry:
  • (string) $directory The directory of the collection.
    Wymagane: Tak
Powrót:
  • (bool) Whether the collection is valid and all of its fields are
    registered. True as well when it has no fields.
Zdefiniowane na:
Codex:

Registers the fields of a field collection, see {@see WP_Entity_Fields_Registry::register_collection()} for the format of a collection.

Like wp_register_entity_fields(), it only runs on the wp_entity_fields_api_init action.


Źródło

function wp_register_entity_field_collection( $directory ) {
	return WP_Entity_Fields_Registry::get_instance()->register_collection( $directory );
}