Skip to main content

开发 Strapi 插件

🌐 Developing Strapi plugins

Strapi 允许开发的插件其工作方式与内置插件或可从 Marketplace获取的第三方插件完全相同。创建后,你的插件可以被:

👉 开始开发 Strapi 插件:

  1. 使用插件 SDK 创建插件
  2. 了解更多关于插件的结构的信息。
  3. 获取 插件 API 的概览,以向你的插件添加功能。
  4. 根据你的使用案例阅读一些高级指南
Note

确保你以不同的主要版本号发布 Strapi 5 插件,以将其与 v4 兼容版本区分开来。

🌐 Ensure you release your Strapi 5 plugin as a different major version number to distinguish it from the v4 compatible version.

插件API

🌐 Plugin APIs

Strapi 为插件提供以下编程 API 来连接 Strapi 的一些功能:

🌐 Strapi provides the following programmatic APIs for plugins to hook into some of Strapi's features:

Custom fields plugins

插件也可以用于向 Strapi 添加 自定义字段

🌐 Plugins can also be used to add custom fields to Strapi.

指南

🌐 Guides


Additional resources

The contributors documentation 还可以包括在开发 Strapi 插件时有用的额外信息。