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



wp_unregister_entity_fields › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_unregister_entity_fields ( $kind, $name, $ids = null )
Parameters: (3)
  • (string) $kind The entity kind (e.g. `postType`).
    Required: Yes
  • (string) $name The entity name (e.g. `page`).
    Required: Yes
  • (string[]|null) $ids The ids of the fields to unregister. Default null, every field of the entity.
    Required: No
    Default: null
Returns:
  • (array[]) The list of the definitions unregistered, in
    registration order. Empty when none is.
Defined at:
Codex:

Unregisters fields of an entity, see {@see WP_Entity_Fields_Registry::unregister()}.

It only runs on the wp_entity_fields_api_init action.


Source

function wp_unregister_entity_fields( $kind, $name, $ids = null ) {
	return WP_Entity_Fields_Registry::get_instance()->unregister( $kind, $name, $ids );
}