Hi;
I just thought it would be great, if there is an option ( or an easy way ) to show a custom field value in a rest-api response. For example
`piklist(‘field’, array(
‘type’ => ‘text’,
‘field’ => ‘my_text’,
‘label’ => ‘Text’,
‘rest_api_visible’ => true,
‘attributes’ => array(
‘class’ => ‘regular-text’ // WordPress css class
)
));`
Of course would be much more complex, but just thought it would be a cool feature. I’m front-end developer and most of the time work with just APIs and I guess a lot of other people can benefit, too. Also to make WP the ultimate headless CMS.