跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

SEO Fields API Support

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

SEO Fields API Support

作者:Dmytro Verzhykovskyi
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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.

Key Features

  • Yoast SEO Integration: Exposes _yoast_wpseo_title and _yoast_wpseo_metadesc fields 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.

Compatibility

  • Requires WordPress 6.2 or higher.
  • Requires Yoast SEO to be installed and activated.

Usage

After activation, you can update SEO fields using the WordPress REST API. Below is an example:

  • Updating a Post: Send a PUT request 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.”
    }
    }

安装

  1. Upload the seo-fields-api-support folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. No additional setup is required -the plugin automatically registers the Yoast SEO fields with the REST API.

评价

此插件暂无评价。

贡献者及开发者

「SEO Fields API Support」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Dmytro Verzhykovskyi

帮助将「SEO Fields API Support」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

额外信息

  • 版本 1.1
  • 最后更新:3 天前
  • 活跃安装数量 不到10
  • WordPress 版本 6.2 或更高版本
  • 已测试的最高版本为 6.7.5
  • 语言
    English (US)
  • 标签
    apimetadatarest-apiseoYoast
  • 高级视图

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • Dmytro Verzhykovskyi

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.