Hi there!
My apologies for the delay, server maintenance interfered…
If you want to obtain the rendered data, which includes fallbacks/generated data, you’ll find most use out of this class as a reference:
https://github.com/sybrew/the-seo-framework/blob/master/inc/classes/render.class.php
More specifically, these methods are useful:
get_title()
get_description()
get_open_graph_description()
get_open_graph_title()
get_image_from_cache() // To be deprecated as soon as 3.4 or 3.5!!
create_canonical_url()
You can access them via the_seo_framework()->{$function_name}()
.
For example: the_seo_framework()->get_title()
I’m not sure if The SEO Framework is aware of the REST request; I have yet to see widespread implementations of the REST API. However, all the aforementioned methods (except for the image one), accept input parameters id
and taxonomy
.
If you’re running into issues, please reach out to me. I’d love to know how other developers work (and stumble) with TSF so that I can improve this. Cheers!
Awesome! 🙂 I’ll give it a try in the next days.
Thank you for the detailed answer 🙂