valendesigns / option-tree

Theme Options UI Builder for WordPress. A simple way to create & save Theme Options and Meta Boxes for free or premium themes.
GNU General Public License v2.0
610 stars 181 forks source link

Exposing custom content types meta data to REST API #719

Open mrawers opened 4 years ago

mrawers commented 4 years ago

Is it possible to add the metadata from the custom content types to the WordPress REST API? I am testing with a plugin that adds a few different custom content types and each content type has a metabox.php i.e. team.php and team-metabox.php. I was able to add the 'show_in_rest' => true, to the main content type but the metaboxes which use a function named: ot_register_meta_box is not paying attention to the show_in_rest attribute. Is what I am requesting possible?