factor1 / better-rest-endpoints

A WordPress plugin that serves up slimmer WP Rest API endpoints.
https://wordpress.org/plugins/better-rest-endpoints/
GNU General Public License v3.0
67 stars 25 forks source link

Add support for Yoast SEO fields #19

Closed joshuafredrickson closed 6 years ago

erwstout commented 6 years ago

Beautiful, thanks @joshuafredrickson - I'll review and test in a bit but looks like this will get merged in and pushed today or tomorrow.

joshuafredrickson commented 6 years ago

No worries. I got carried away and added a second round of changes to the PR too.

These changes should return the actual post_name for the slug versus basename($permalink). The previous method was breaking on page_on_front by returning the site's URL versus the post_name.

erwstout commented 6 years ago

Thank you so much for your contribution @joshuafredrickson - this is now added in version 1.3.0 both here and on the official WordPress repository.

https://wordpress.org/plugins/better-rest-endpoints/