Title: REST API Featured Image
Author: uri
Published: <strong>1 Tháng 10, 2020</strong>
Last modified: 6 Tháng 8, 2025

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/rest-api-featured-image.svg)

# REST API Featured Image

 Bởi [uri](https://profiles.wordpress.org/icelayer/)

[Tải về](https://downloads.wordpress.org/plugin/rest-api-featured-image.0.9.2.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/rest-api-featured-image/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/rest-api-featured-image/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/rest-api-featured-image/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/rest-api-featured-image/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/rest-api-featured-image/)

## Mô tả

**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`

## Cài đặt

 1. **Upload the Plugin Files:**
     – Upload the `rest-api-featured-image` folder to 
    the `/wp-content/plugins/` directory. – Or install the plugin directly through 
    the WordPress plugins screen.
 2. **Activate the Plugin:**
     – Activate the plugin through the ‘Plugins’ screen in
    WordPress.
 3. **Configure Plugin Settings:**
     – Navigate to the plugin settings page in the WordPress
    admin area. – Select the post types for which you want to enable or disable the
    featured image URL field.

## Hỏi đáp

### How do I access the featured image URL from the REST API?

After installing and activating the plugin, the REST API responses for your selected
post types will include a new field named `featured_media_src_url`. This field contains
the direct URL to the featured image.

### Does this plugin support custom post types?

Yes, the plugin fully supports custom post types. You can enable or disable the 
featured image URL field for any post type via the plugin’s settings in the admin
area.

### Will this plugin improve my site’s performance?

Absolutely. By eliminating the need for additional API requests to fetch featured
images, your site’s performance and load times will improve.

### Do I need any coding knowledge to use this plugin?

Not at all. The plugin is user-friendly and requires no coding skills. Simply install,
activate, and configure your settings.

## Đánh giá

![](https://secure.gravatar.com/avatar/3b782289c7a51f5a698a3154f14498c71b976dcc9e38047f7cd5c822b1143bda?
s=60&d=retro&r=g)

### 󠀁[Handy plugin, but watch the CSS](https://wordpress.org/support/topic/handy-plugin-but-watch-the-css/)󠁿

 [stilemas](https://profiles.wordpress.org/stilemas/) 12 Tháng 6, 2025

This plugin did what it was built to do, it easily added my featured media into 
the REST API. However, it also overrode a lot of styling on my website. specifically
hyperlinks. I ended up removing the plugin and adding "?_embed" to the end of my
call (ex: wp-json/wp/v2/posts?_embed) which accomplished the same thing without 
the need for this plugin.

![](https://secure.gravatar.com/avatar/1854a6fcf6451c44e4e7c21abb59f1dc6c7e7605770a31d67a8e25c2b87f3696?
s=60&d=retro&r=g)

### 󠀁[not work with current wordpress version](https://wordpress.org/support/topic/not-work-with-current-wordpress-version/)󠁿

 [fdciabdul](https://profiles.wordpress.org/fdciabdul/) 1 Tháng 9, 2024

not work with current wordpress version

![](https://secure.gravatar.com/avatar/b9b04895e5764d516a56e9c9a1cec66130c01bfeff42289406af699916df0ffa?
s=60&d=retro&r=g)

### 󠀁[You saved my day](https://wordpress.org/support/topic/you-saved-my-day-7/)󠁿

 [gborgonovo](https://profiles.wordpress.org/gborgonovo/) 14 Tháng 6, 2021

Thank you!

![](https://secure.gravatar.com/avatar/2275513321fd668070cfdb5e66ef3a8fc02684c7d69c561d2120fc6b9100f3a8?
s=60&d=retro&r=g)

### 󠀁[Well done!!!](https://wordpress.org/support/topic/well-done-613/)󠁿

 [orsifrancesco](https://profiles.wordpress.org/orsifrancesco/) 27 Tháng 11, 2020

I'm surprised Wordpress doesn't include this feature by default.. it is the plugin
I was looking for, thank you 🙂

 [ Đọc tất cả 4 đánh giá ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/)

## Người đóng góp & Lập trình viên

“REST API Featured Image” là mã nguồn mở. Những người sau đã đóng góp vào plugin
này.

Những người đóng góp

 *   [ uri ](https://profiles.wordpress.org/icelayer/)

[Dịch “REST API Featured Image” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/rest-api-featured-image)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/rest-api-featured-image/),
check out [SVN repository](https://plugins.svn.wordpress.org/rest-api-featured-image/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/rest-api-featured-image/)
qua [RSS](https://plugins.trac.wordpress.org/log/rest-api-featured-image/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Phiên bản **0.9.2**
 *  Cập nhật lần cuối **1 năm trước**
 *  Số lượt cài đặt **600+**
 *  Phiên bản WordPress ** 5.3.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.8.12**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/rest-api-featured-image/)
 * Thẻ
 * [featured image](https://vi.wordpress.org/plugins/tags/featured-image/)[rest-api](https://vi.wordpress.org/plugins/tags/rest-api/)
   [Wordpress REST API](https://vi.wordpress.org/plugins/tags/wordpress-rest-api/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/rest-api-featured-image/advanced/)

## Đánh giá

 4 trên 5 sao.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/?filter=1)

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/rest-api-featured-image/reviews/)

## Những người đóng góp

 *   [ uri ](https://profiles.wordpress.org/icelayer/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/rest-api-featured-image/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6D6W2KXB88NKE)