Title: REST API Extender
Author: SEO Neo
Published: <strong>2024 年 4 月 15 日</strong>
Last modified: 2024 年 4 月 16 日

---

搜索插件

![](https://ps.w.org/rest-api-extender/assets/banner-772x250.png?rev=3070936)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/rest-api-extender/assets/icon-256x256.png?rev=3070916)

# REST API Extender

 作者：[SEO Neo](https://profiles.wordpress.org/stealthcode/)

[下载](https://downloads.wordpress.org/plugin/rest-api-extender.zip)

 * [详情](https://cn.wordpress.org/plugins/rest-api-extender/#description)
 * [评价](https://cn.wordpress.org/plugins/rest-api-extender/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/rest-api-extender/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/rest-api-extender/#developers)

 [支持](https://wordpress.org/support/plugin/rest-api-extender/)

## 描述

The REST API Extender is a WordPress plugin that extends the functionality of the
WordPress REST API.

It provides two main features:

 1. **Permalink Options Management**
     This plugin allows you to update the permalink
    settings of your WordPress site via the REST API. You can change the permalink 
    structure, category base, and tag base using a simple POST request.

To update the permalink settings, send a POST request to the following endpoint:
/
wp-json/raext/permalink-options/v1/settings

The request body should include the following parameters:

 * `permalink_structure` (string): The new permalink structure.
 * `category_base` (string, optional): The new category base.
 * `tag_base` (string, optional): The new tag base.

Example request:
 POST /wp-json/raext/permalink-options/v1/settings Content-Type:
application/json

{
 “permalink_structure”: “/%year%/%postname%/”, “category_base”: “categories”, “
tag_base”: “tags” }

 1. **Theme Installation and Activation**
     The plugin also enables you to install and
    activate themes from a remote URL using the REST API. You have to provide the theme
    URL, stylesheet, and slug, and the plugin will handle the installation and activation
    process.

To install and activate a theme from a remote URL, send a POST request to the following
endpoint:
 /wp-json/raext/theme-manager/v1/install

The request body should include the following parameters:

 * `theme_url` (string): The URL of the theme ZIP file.
 * `theme_stylesheet` (string): The stylesheet of the theme (e.g., `twentytwenty`).
 * `theme_slug` (string): The slug of the theme (e.g., `twentytwenty`).

Example request:
 POST /wp-json/raext/theme-manager/v1/install Content-Type: application/
json

{
 “theme_url”: “https://example.com/themes/twentytwenty.zip”, “theme_stylesheet”:“
twentytwenty”, “theme_slug”: “twentytwenty” }

Developed by the creators of [SEO Neo](https://seoneo.io/)

### Permissions

Both the permalink options management and theme installation/activation features
require the user to have the `manage_options` capability (an administrator role).

## 安装

 1. Upload the `rest-api-extender` directory to the `/wp-content/plugins/` directory
    on your WordPress site.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ SEO Neo ](https://profiles.wordpress.org/stealthcode/)

[帮助将「REST API Extender」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rest-api-extender)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/rest-api-extender/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/rest-api-extender/)，或通过[RSS](https://plugins.trac.wordpress.org/log/rest-api-extender/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/rest-api-extender/)。

## 额外信息

 *  版本 **2.2**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-extender/)
 * 标签
 * [appearance](https://cn.wordpress.org/plugins/tags/appearance/)[options](https://cn.wordpress.org/plugins/tags/options/)
   [permalink](https://cn.wordpress.org/plugins/tags/permalink/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [theme](https://cn.wordpress.org/plugins/tags/theme/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-extender/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/rest-api-extender/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/rest-api-extender/reviews/)

## 贡献者

 *   [ SEO Neo ](https://profiles.wordpress.org/stealthcode/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/rest-api-extender/)