Returns Yoast post or page metadata in a normal post or page request.
Returns Yoast post or page metadata in a normal post or page request. Stores the metadata in the yoast_meta field of the returned data.
Upload the plugin files to the /wp-content/plugins/wp-api-yoast-meta directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the ‘Plugins’ screen in WordPress
…
Profit
Changed register_api_field
to register_rest_field
as it’s depracated
Changed the metadata name to yoast
rather than yoast_meta
Removed the yoast_wpseo_
prefix from the returned meta as it seems undeed
Using Class instead of plain function
Added output to public custom post types
Launched!