Is it possible to hide a Custom Taxonomy panel for only some posts based on a certain condition?
this filter modifies the answer of the api route wp/v2/taxonomies when gutenberg request it. it relies on the http header Referer which is set by the client. then, there is no security checks, it’s only a cosmetic customisation. add_filter(“rest_prepare_taxonomy”, function ($response, $taxonomy, $request) { if (“bundles” === $taxonomy->name) { // searching the post id preg_match( … Read more