lgladdy / wordpress-dominant-color

A WordPress plugin to automatically save the dominant colour for an attachment image into post_meta
Apache License 2.0
32 stars 4 forks source link

Rest API #7

Open tobiasger opened 2 years ago

tobiasger commented 2 years ago

I tried modifying the plugin so that the meta fields are included in the Wordpress REST API, but I couldn't really find a proper place for 'show_in_rest' => true to be placed. Could the code be updated so that the fields are included in the REST API, or could you point to where this would be added?