[wp-trac] [WordPress Trac] #48000: Administration - Edit Page for Meta Data on Taxonomies
WordPress Trac
noreply at wordpress.org
Sat Feb 22 22:41:02 UTC 2020
#48000: Administration - Edit Page for Meta Data on Taxonomies
-----------------------------+-------------------------------------------
Reporter: bodohugobarwich | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration, rest-api
-----------------------------+-------------------------------------------
Changes (by bodohugobarwich):
* focuses: ui, administration => ui, administration, rest-api
Comment:
For the implementation of the Meta Data "''Custom Fields''" Feature of the
`/wp-admin/term.php` Module I had in mind an implementation like it is
seen at the `/wp-admin/post.php` Module, but I found that the `/wp-
admin/post.php` Module is already implemented with the new **REST API**.
But the Management of Meta Data with the REST API for a general solution
fails at the `WP_REST_Meta_Fields::get_registered_fields()` Method.
To be able to manage the Meta Field over the REST API it requires the Meta
Field to have the `show_in_rest` Attribute which cannot be managed by the
Database and must be set by **Custom Code** that invokes the
`register_meta()` Function of the `/wp-includes/meta.php` Module.
Now only if the Meta Field Attributes as checked in
`WP_REST_Meta_Fields::get_registered_fields()` Method could be set and
managed by the Database and loaded from it a general future proof solution
for the "''Custom Fields''" Edit Block through the REST API can be
implemented.
Since the Meta Field Attribute `show_in_rest` in itself is a complex
structure it even complicates the Management within the Database even
more. A more streamlined Architecture is required to unblock future
progress in this area.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48000#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list