Viewing 1 reply thread
  • Author
    Posts
    • #7188
      Ico
      Member

      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.

    • #7223
      Steve
      Keymaster

      @bassta– We agree it would be great… in the plan for a future version.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.