前言介紹
- 這款 WordPress 外掛「REST API Featured Image」是 2020-09-30 上架。
- 目前有 700 個安裝啟用數。
- 上一次更新是 2025-04-19,距離現在已有 14 天。
- 外掛最低要求 WordPress 5.3.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
icelayer |
外掛標籤
rest-api | featured image | api performance | featured image url | WordPress REST API |
內容簡介
這個外掛會在頂層新增一個特色圖像 src 欄位,包含特色圖像的 src URL。
如果你需要從 WordPress REST API 取得一個特色圖像,這個簡單的外掛可以幫助你。
透過此外掛,你可以不需額外的請求,直接存取特色圖像的 URL。
你可以在管理區設定特色圖像的文章類型,並且選擇要對哪些文章類型啟用或停用這個功能。
REST API 特色圖像欄位名稱:
featured_media_src_url
原文外掛簡介
REST API Featured Image is a lightweight yet powerful plugin that simplifies how to retrieve featured images via the WordPress REST API. By introducing a top-level field called featured_media_src_url, this plugin embeds the direct URL of the featured image into your REST API responses. This eliminates the need for additional API calls to fetch featured images, resulting in faster load times and enhanced site performance.
Key Features:
– Direct Access to Featured Image URL: Adds featured_media_src_url to REST API responses, providing immediate access to the featured image URL.
– Performance Optimization: Reduces the number of API requests, improving the speed and efficiency of your applications.
– Custom Post Type Support: Fully supports custom post types, allowing you to enable or disable the featured image URL field for specific post types through the admin settings.
– User-Friendly Configuration: Easy to install and configure without any coding.
Why Use REST API Featured Image?
When developing applications or themes that rely on the WordPress REST API, accessing the featured image typically requires an additional request for each post. This can be time-consuming and may negatively impact site performance. REST API Featured Image addresses this issue by including the featured image URL directly in the REST API response, saving you time and resources.
REST API Featured Image Field:
– featured_media_src_url
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「REST API Featured Image」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.6.4 | 0.6.7 | 0.6.8 | 0.7.1 | 0.7.3 | 0.7.5 | 0.8.1 | 0.8.3 | 0.9.0 | 0.9.1 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。