File: /home/dtptviut/domains/edn.dk/private_html/wp-content/plugins/yoast-rest-meta/readme.txt
=== Yoast REST Meta Enabler ===
Contributors: chatgpt
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Enables updating Yoast SEO meta title and meta description via the WordPress REST API for posts and pages.
== Description ==
WordPress REST API only allows writing to post meta keys that are registered with `show_in_rest => true`.
Yoast SEO does not expose `_yoast_wpseo_title` and `_yoast_wpseo_metadesc` for writing by default.
This plugin registers those keys for posts and pages so you can set them via:
`POST /wp-json/wp/v2/posts/<id>` (or pages) with a `meta` object.
== Usage ==
Example request:
POST /wp-json/wp/v2/posts/123
Content-Type: application/json
Authorization: Basic <base64(user:application_password)>
{
"meta": {
"_yoast_wpseo_title": "My SEO Title",
"_yoast_wpseo_metadesc": "My SEO Description"
}
}
== Filters ==
`yoast_rest_meta_enabler_post_types` — Filter the list of post types (default: ['post','page']). Return an array of post type slugs.