PageForge 1.3 : Vérifiez chaque exécution avant qu'elle n'écrive, mettez à jour les pages générées, les spintox et les lots de reprise. Voir ce qui a changé
Better REST API Featured Images icon
Peut-être abandonné Testé jusqu'à 4.6.30 #8 in featured

Better REST API Featured Images

Note: You probably do not need this plugin. The REST API already supports adding the query param ?_embed to your URL and the response will then include all “embedded media”, including the featured image, and the data…

Installations actives2K+1 000 000 +
Téléchargements · 30D896▲ +41.8% vs prev. 30d
Évaluation5/511 avis
Score de santé40/100En danger
Téléchargements de tous les temps64.5KDepuis octobre 2015
Support résolu—Aucun fil de discussion récent
A besoin deWP 4.0Php tout
Téléchargements · 7j197▼ -9.6% week over week
Notre verdict

Envisager une alternative

Better REST API Featured Images shows warning signs in 2026 — compare the alternatives below before installing. It runs on 2K+ sites, is rated 5/5 and was last updated 10 years ago, and scores 40/100 on our health check.

  • Momentum — Téléchargements en hausse de 41,8 % par rapport aux 30 jours précédents
  • Pas de mise à jour dans 10 ans
  • Uniquement testé jusqu'à WordPress 4,6 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

122537Aug 21Oct 4Nov 18
Hier41
Moyenne quotidienne (1 ans)16
Jour de pointe67Jun 16, 2026
12 Derniers mois5.8K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Better REST API Featured Im… stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
featured >100 5,847 Best featured plugins →
images >100 10,000 Les meilleurs plugins d'images →
poster >100 10,000 Meilleurs plugins de publication →
rest >100 10,000 Best rest plugins →
la vignette >100 4,655 Meilleurs plugins de vignettes →

Adoption de version

Part de sites actifs par version.

  • 1.2100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 11 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Better REST API Featured Images

À partir du Lisez-moi officiel · v1.2.1

Description

Note: You probably do not need this plugin. The REST API already supports adding the query param ?_embed to your URL and the response will then include all “embedded media”, including the featured image, and the data you get there is exactly what this plugin gives you. The only reasons to use this plugin at this point are if you prefer to have the featured image data in a top level field in the response rather than among other embedded media in the _embedded field, and if you always want the featured image data in the response rather than having to ask for it with ?_embed. I still use this plugin because I do usually want both these things, but definitely give ?_embed a try before using this plugin. 🙂

Version 2 of the WordPress REST API returns a featured_media field (formerly featured_image) on the post object by default, but this field is simply the image ID.

This plugin adds a better_featured_image field to the post object that contains the available image sizes and urls, allowing you to get this information without making a second request.

It takes this:

"featured_media": 13,

And turns it into this:

"featured_media": 13,
"better_featured_image": {
    "id": 13,
    "alt_text": "Hot Air Balloons",
    "caption": "The event featured hot air balloon rides",
    "description": "The hot air balloons from the big event",
    "media_type": "image",
    "media_details": {
      "width": 5760,
      "height": 3840,
      "file": "2015/09/balloons.jpg",
      "sizes": {
        "thumbnail": {
          "file": "balloons-150x150.jpg",
          "width": 150,
          "height": 150,
          "mime-type": "image/jpeg",
          "source_url": "http://api.example.com/wp-content/uploads/2015/09/balloons-150x150.jpg"
        },
        "medium": {
          "file": "balloons-300x200.jpg",
          "width": 300,
          "height": 200,
          "mime-type": "image/jpeg",
          "source_url": "http://api.example.com/wp-content/uploads/2015/09/balloons-300x200.jpg"
        },
        "large": {
          "file": "balloons-1024x683.jpg",
          "width": 1024,
          "height": 683,
          "mime-type": "image/jpeg",
          "source_url": "http://api.example.com/wp-content/uploads/2015/09/balloons-1024x683.jpg"
        },
        "post-thumbnail": {
          "file": "balloons-825x510.jpg",
          "width": 825,
          "height": 510,
          "mime-type": "image/jpeg",
          "source_url": "http://api.example.com/wp-content/uploads/2015/09/balloons-825x510.jpg"
        }
      },
      "image_meta": {
        "aperture": 6.3,
        "credit": "",
        "camera": "Canon EOS 5D Mark III",
        "caption": "",
        "created_timestamp": 1433110262,
        "copyright": "",
        "focal_length": "50",
        "iso": "100",
        "shutter_speed": "0.004",
        "title": "",
        "orientation": 1
      }
    },
    "post": null,
    "source_url": "http://api.example.com/wp-content/uploads/2015/09/balloons.jpg"
},

The format of the response is nearly identical to what you would get sending a request to /wp-json/wp/v2/media/13 or using ?_embed. When no featured image has been set on the post the better_featured_image field will have a value of null.

I’ve done some basic performance tests that indicate the difference in response times with and without this plugin to be about 10-15ms for a collection of 10 posts and 0-5ms for a single post. For me this is much faster than making a second request to /media/, especially for multiple posts.

As of version 1.1.0, there is a filter better_rest_api_featured_image that allows you to add custom data to the better_featured_image field. The filter is directly on the return value of the function that returns the better_featured_image field. This can be used to do things like add custom image meta or an SVG version of the image to the response. Here’s an example of how you might use it:

add_filter( 'better_rest_api_featured_image', 'xxx_modify_rest_api_featured_image', 10, 2 );
/**
 * Modify the Better REST API Featured Image response.
 *
 * @param   array  $featured_image  The array of image data.
 * @param   int    $image_id        The image ID.
 *
 * @return  array                   The modified image data.
 */
function xxx_modify_rest_api_featured_image( $featured_image, $image_id ) {

  // Add an extra_data_string field with a string value.
  $featured_image['extra_data_string'] = 'A custom value.';

  // Add an extra_data_array field with an array value.
  $featured_image['extra_data_array'] = array(
    'custom_key' => 'A custom value.',
  );

  return $featured_image;
}

This plugin is on on Github and pull requests are always welcome. 🙂

Installation

Installation manuelle

  1. Téléchargez l'intégralité du répertoire /better-rest-api-featured-images dans le répertoire /wp-content/plugins/.
  2. Activate ‘Better REST API Featured Images’ through the ‘Plugins’ menu in WordPress.

Better Installation

  1. Go to Plugins > Add New in your WordPress admin and search for ‘Better REST API Featured Images’.
  2. Click Install.

Journal de modifications

Add fix for bug caused by conflicts with plugins that manipulate image metadata

1.2.1

  • Add fix for bug caused by conflicts with plugins that manipulate image metadata

1.2.0

  • Fix translation files present but not loading
  • Add note to the readme explaining that ?_embed should be tried before using this plugin
  • Fix compat with older betas
  • Add missing PHPDoc statements
  • Tested with v2 beta 12

1.1.1

  • Compatibility with v2 beta 11 of the REST API (now the core field is called featured_media; this plugin’s field is still better_featured_image). Props: filose

1.1.0

  • Add a better_rest_api_featured_image filter for adding custom data to the response. Props: avishayil

1.0.2

  • Change register_api_field to register_rest_field for compatibility with the REST API v2 beta 9. Props: Soean

1.0.1

  • Switch to returning null instead of 0 when no featured image is present

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Better REST API Featured Imag… alternatives

All featured plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Conditionally display featured image on singular posts and pages Conditionally display featured image on singular posts and… Easily control whether the featured image appears in the single post or page view (doesn't… by cyrillbolliger 30K+ ★★★★★★★★★★ 4.8 (38) il y a 7 mois 62
2 Hide Featured Image Hide Featured Image To Hide Featured Image on single post/page. by shahpranaf 10K+ ★★★★★★★★★★ 3.6 (81) il y a 8 ans 40
3 Daddy Plus Daddy Plus Daddy Plus is a useful plugin for WordPress theme by Themes Daddy. by Themes Daddy 8K+ ★★★★★★★★★★ Aucun avis il y a 1 mois 68
4 NS Featured Posts NS Featured Posts A plugin for making posts, pages, or custom post types featured. Users can enable/disable… by Nilambar Sharma 4K+ ★★★★★★★★★★ 4.8 (29) Il y a 3 mois 84
5 WP Hide Show Featured Image WP Hide Show Featured Image The plugin provides options to hide featured images from all posts and pages. par galaxy weblinks 3K+ ★★★★★★★★★★ 4.7 (3) Il y a 1 an 43
6 Galeries en vedette Galeries en vedette Aimez-vous donner aux publications une image en vedette ? Essayez une galerie en vedette. C'est comme une vedette… par Andy Mercer 3K+ ★★★★★★★★★★ 4.7 (20) il y a 8 ans 44
7 YITH WooCommerce Featured Video YITH WooCommerce Featured Video YITH WooCommerce Featured Video allows you to place a video in the product detail page… par yithèmes 3K+ ★★★★★★★★★★ 2.9 (34) 3 semaines plus tôt 66
9 Image en vedette RSS Image en vedette RSS Ajoutez l'image en vedette à votre flux RSS (dans le média : contenu). Fonctionne bien avec… de Jordy Meow 2K+ ★★★★★★★★★★ 5 (23) Il y a 3 ans 45
10 Featured Image Generator Featured Image Generator Get the best photos from free license website like Unsplash. You can customize images by… by Aum Watcharapon 1K+ ★★★★★★★★★★ 4.6 (11) il y a 9 mois 52
11 Avantex Companion Avantex Companion Avantex Companion is a companion plugin for Avantex themes. par FarazFrank 1K+ ★★★★★★★★★★ Aucun avis Il y a 2 semaines 70

FAQ

Better REST API Featured Images: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Better REST API Featured Images free?

Yes. Better REST API Featured Images is free to download and use from the official WordPress.org plugin directory.

Is Better REST API Featured Images safe to use in 2026?

Better REST API Featured Images shows warning signs in 2026 — compare the alternatives below before installing. It runs on 2K+ sites, is rated 5/5 and was last updated 10 years ago, and scores 40/100 on our health check.

How many websites use Better REST API Featured Images?

Better REST API Featured Images is active on 2K+ WordPress websites and has been downloaded 64,527 times since it launched in October 2015. It was downloaded 896 times in the last 30 days.

Does Better REST API Featured Images work with WordPress 7.1?

Better REST API Featured Images is officially tested up to WordPress 4.6.30, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Better REST API Featured Images last updated?

The latest version, 1.2.1, was released on July 30, 2016 (10 years ago).

Who makes Better REST API Featured Images?

Better REST API Featured Images is developed and maintained by Braad.

What are the best alternatives to Better REST API Featured Images?

The most popular alternatives to Better REST API Featured Images are Conditionally display featu… (30K+ installs), Hide Featured Image (10K+ installs) and Daddy Plus (8K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir