WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 6 weeks ago

#48000 new feature request

Administration - Edit Page for Meta Data on Taxonomies

Reported by: bodohugobarwich Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: ui, administration, rest-api Cc:

Description (last modified by SergeyBiryukov)

Hi,

I recently worked on a Project where I wanted to implement Functionality based on the Meta Data of the Categories.
Similar as it was expressed in #10142
Since I was aware it was already implemented in [34529]
I tried to use the Meta Data on Categories stored in wp_termmeta
But I also need human management on the Meta Data stored.

So, reviewing and debuging the WordPress Code I found there is no way to interact with the Meta Data from the Administration Panel.
And I wonder whether someone since the launch of the feature already works on the Administration Page for Meta Data for Categories ?

I would like to know if there is already some development on this.

I had in mind some functionality as it is available for the Post Administration Page.

Best Regards,
Bodo

Change History (3)

#1 @SergeyBiryukov
7 months ago

  • Component changed from Administration to Taxonomy
  • Description modified (diff)

#2 @bodohugobarwich
5 months ago

If nobody is working on the issue yet I would love to contribute this functionality to the Project.

#3 @bodohugobarwich
6 weeks ago

  • Focuses rest-api added

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.

Note: See TracTickets for help on using tickets.