Unable to save a custom meta value for Template (and Template Part) post type
-
I’m currently developing an extension to the Block Editor so I can assign a color theme at different level : to a block-template, a post or a block.
In blocks the color theme is saved as an attribute, in posts and templates as a meta.
I’ve had no problem adding controls to block or post sidebars.
But in a template, I can’t save the color theme value as a meta.
The post type doesn’t seem to support metas and the REST API controller doesn’t extend the Posts controller as it does for blocks… There’s no filter in the template controller either.
Does this seem like an issue, or does anyone know if there’s another way of extending the controller, or am I going to have to save the color theme of a template in an option?
- You must be logged in to reply to this topic.