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



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


(string) Attachment ID.


Since: Jetpack 3.9.0


Have a note to contribute?

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

You are commenting using your 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