REST API Featured Image

外掛說明

This Plugin will add a top-level featured image src field with the featured image src URL.

If you need to get a featured image from the WordPress REST API. This is a very simple plugin that will help.

Get the featured image without making an additional request, this will add direct access to the Featured Image URL.

The featured image Post type can be set in the admin section, where you can choose to enable or disable for specific post types.

REST API Featured Image Field:
featured_media_src_url

安裝方式

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

常見問題集

What about custom Post Types

The plugin has full support for custom post types.

使用者評論

2020 年 11 月 27 日
I'm surprised Wordpress doesn't include this feature by default.. it is the plugin I was looking for, thank you 🙂
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈REST API Featured Image〉的開發相關工作。

參與者

將〈REST API Featured Image〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄