Описание
SEO Fields API Support is a lightweight plugin that enhances the WordPress REST API by making Yoast SEO fields — such as SEO titles and meta descriptions -available for programmatic updates. This plugin is perfect for developers and site owners who need to automate or manage SEO metadata efficiently via the REST API.
Ключевые функции
- Yoast SEO Integration: Exposes
_yoast_wpseo_titleand_yoast_wpseo_metadescfields in the REST API. - Wide Compatibility: Supports all public post types, including posts, pages, and custom post types.
- Secure: Includes authentication checks and data sanitization to ensure safe updates.
- Lightweight: Only activates its features when Yoast SEO is installed, minimizing overhead.
Совместимость
- Requires WordPress 6.2 or higher.
- Requires Yoast SEO to be installed and activated.
Как использовать
After activation, you can update SEO fields using the WordPress REST API. Below is an example:
- Updating a Post: Send a
PUTrequest to/wp/v2/posts/<post-id>with this JSON body:
`json
{
«meta»: {
«_yoast_wpseo_title»: «Custom SEO Title»,
«_yoast_wpseo_metadesc»: «Custom meta description for SEO.»
}
}
Установка
- Upload the
seo-fields-api-supportfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- No additional setup is required -the plugin automatically registers the Yoast SEO fields with the REST API.
Отзывы
Нет отзывов об этом плагине.
Участники и разработчики
«SEO Fields API Support» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«SEO Fields API Support» переведён на 1 язык. Благодарим переводчиков за их работу.
Перевести «SEO Fields API Support» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
