apply_filters ( 'rest_api_thumbnail_sizes', array $metadata[’sizes’], string $media_id )

Filter the thumbnail sizes available for each attachment ID.

Source file: class.json-api-endpoints.php

View in GitHub

Parameters

$metadata[’sizes’]

(array) Array of thumbnail sizes available for a given attachment ID.

$media_id

(string) Attachment ID.


Changelog

Since: Jetpack 3.9.0


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s