https://github.com/invisionapp/wp-api-yoast-meta
https://github.com/invisionapp/wp-api-yoast-meta
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/invisionapp/wp-api-yoast-meta
- Owner: InVisionApp
- Archived: true
- Created: 2019-06-24T20:35:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T17:36:46.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T11:46:08.370Z (11 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Yoast to REST API - WordPress plugin

For use with the new [WP REST API](http://v2.wp-api.org/)
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.
```
{
id: 123,
...
yoast_meta: {
yoast_wpseo_title: "Testy Test | My WordPress site",
yoast_wpseo_metadesc: "My description",
yoast_wpseo_canonical: "http://my-wordpress-site.test/testy-test"
}
}
```
Supports pages, posts, categories, tags and any *public* custom post types
Currently fetching:
- `yoast_wpseo_title`
- `yoast_wpseo_metadesc`
- `yoast_wpseo_canonical`
Currently updating:
- `yoast_wpseo_focuskw`
- `yoast_wpseo_title`
- `yoast_wpseo_metadesc`
- `yoast_wpseo_linkdex`
- `yoast_wpseo_metakeywords`
- `yoast_wpseo_meta-robots-noindex`
- `yoast_wpseo_meta-robots-nofollow`
- `yoast_wpseo_meta-robots-adv`
- `yoast_wpseo_canonical`
- `yoast_wpseo_redirect`
- `yoast_wpseo_opengraph-title`
- `yoast_wpseo_opengraph-description`
- `yoast_wpseo_opengraph-image`
- `yoast_wpseo_twitter-title`
- `yoast_wpseo_twitter-description`
- `yoast_wpseo_twitter-image`
Thanks to Pablo Postigo, Tedy Warsitha and Charlie Francis for amazing contributions!