跳到内容

REST API Featured Image

v0.9.2

uri · 2020年10月1日 上架

Enhance your WordPress REST API by adding a featured image URL field directly to API responses, improving performance by eliminating extra requests.

正在使用
600+
评分
4.0 / 5
累计下载
1.1 万
最近更新
2025年8月6日
4 条评价需要 WordPress 5.3.0+已测试到 6.8.13PHP 7.4+

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums