[WordPress] 外掛分享: REST API Extender

WordPress 外掛 REST API Extender 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「REST API Extender」是 2024-04-14 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2024-04-16,距離現在已有 382 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

stealthcode |

外掛標籤

theme | options | rest-api | permalink | appearance |

內容簡介

**總結:**
REST API Extender 是一個 WordPress 外掛,用於擴展 WordPress REST API 的功能。此外掛提供兩個主要功能:調整永久連結選項和主題安裝及啟用。

**問題與答案:**
1. REST API Extender 是用於擴展哪個 WordPress 功能?
- 答:REST API 的功能。

2. 請說明 REST API Extender 的兩個主要功能。
- 答:調整永久連結選項和主題安裝及啟用。

3. 如果要透過 REST API 更新 WordPress 站點的永久連結設定,應該使用什麼方法?
- 答:透過發送 POST 請求至特定端點。

4. 調整永久連結設定時,請列出應包含在請求主體中的參數。
- 答:permalink_structure(永久連結結構)、category_base(分類基礎)和 tag_base(標籤基礎)。

5. 使用 REST API Extender 安裝和啟用主題時,應該提供什麼資訊?
- 答:主題的 URL、樣式表和標識。

6. 什麼角色權限需要使用者才能管理調整永久連結選項和主題安裝/啟用功能?
- 答:manage_options(管理員角色)。

原文外掛簡介

The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API.
It provides two main features:

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”
}

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
Permissions
Both the permalink options management and theme installation/activation features require the user to have the manage_options capability (an administrator role).

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「REST API Extender」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Custom Post Type Permalinks 》自訂文章類型永久連結允許您編輯自訂文章類型的永久連結結構。, 更改自訂分類目錄的永久鏈接,以“example.org/post_type/taxonomy_name/term_slug̶...。
  • Custom Permalinks 》name or slug), add the filter that looks like this:, function yasglobal_exclude_posts( $post ) {, // Replace '2' with ID of the post you want to ...。
  • Permalink Manager Lite 》Permalink Manager 是一個高評價的 WordPress 永久連結編輯器,可讓使用者自定義文章、頁面和自訂文章型別的網址(專業版支援分類法)。若要讓您的網站被搜尋...。
  • FV Top Level Categories 》這是針對 WordPress 3.1 及以上版本修復「Top Level Category」外掛程式的修正版。此外掛程式的目的是提供和原來程式相同的功能,但在新版本的 WordPress 上...。
  • WP No Base Permalink 》該外掛能夠將分類基礎從您的分類永久連結中移除 (可選)。默認情況下啟用。, 該外掛能夠從您的分類永久連結中移除父級分類 (可選)。, 該外掛能夠將標籤基礎從...。
  • Simple Post Type Permalinks 》輕鬆編輯自訂文章類型的永久網址結構。, 簡單文章類型永久連結比自訂文章類型永久連結更簡單而聰明。, 可用的標籤包括%post_id%,%postname%,%year%,%month...。
  • Remove CPT base 》從網址中移除自訂文章類型基本標誌, , 可以選擇特定的自訂文章類型, 自動重新導向舊的基本標誌到無基礎標誌, 。
  • WP htaccess Control 》WP htaccess Control(也可以稱為 WP htaccess 和 Rewrite Control)提供了一個界面來自定生成WordPress的htaccess文件以及其永久鏈接(作者、分類、歸檔、分...。
  • Admin Slug Column 》這個外掛會在「所有文章」和「所有頁面」的 wp-admin 界面上新增一欄,顯示每一個文章或頁面的 URL 路徑和別名。如果某個頁面是某個父頁面的子頁面,也會顯示...。
  • Top Level Categories 》這個「Top Level Categories」外掛可以讓您移除類別頁面 URL 前面的字首。例如,您可以使用 http://fortes.com/work 代替 http://fortes.com/category/work ...。
  • Permalinks Customizer 》自定義永久網址助手(Permalinks Customizer)可為公開訪問的不同文章類型和分類定義不同的永久網址結構。您可以使用 WordPress 中已定義的標籤,如此處所述...。
  • WP Permalink Translator 》允許管理員將永久連結翻譯成其他語言。, 開發, https://github.com/hossinasaadi/wp-permalink-translator/。
  • WP Category Permalink 》這個外掛讓你可以為你的文章選擇一個主要分類或分類法以便得到更好的永久連結和SEO效果。, 功能, 通常,你會選擇自訂結構 /%category%/%postname%/% 作為永久...。
  • Simple Slug Translate 》Simple Slug Translate 可以自動將文章、頁面、分類和分類法名稱翻譯成英文。, 它可以讓永久連結更好看,同時也對SEO有好處。, 翻譯引擎由Watson Language Tr...。
  • Custom Permalink Editor 》, 這個外掛是由 Team KCG 開發,用來更改文章、頁面和自訂文章的 URL。, 這個外掛允許您編輯文章、頁面和自訂文章的永久連結。, 這個外掛不會更改佈景主題預...。

文章
Filter
Apply Filters
Mastodon