0
Answered
Add HTML to match through API
Hello,
I want to add a custom HTML code to each match through API, for example using Zapier or Make. However, I can not find a way to edit the match through the Wordpress API. Could you please help us?
Best Regards,
Daniel
Customer support service by UserEcho
Hello
You can try to save custom content using WordPress "custom post meta" such as Game Summary or Game Custom Code (premium version)
Below are meta keys:
_anwpfl_summary
_anwpfl_match_custom_code
--
Best Regards
Andrei S.
Hello Andrei, thanks for your answer.
The problem is that in WP Rest API only appears the custom post meta of "Competitions" and "Clubs". It doesn't appear the custom post meta of "matches". Could you please check how we can register the post type "matches" on your plugin, so we can find it on WP Rest API?
Best Regards,
Daniel
You can add REST API support for a custom post type with a hook
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/#adding-rest-api-support-to-existing-content-types
--
Best Regards
Andrei S.