apply_filters( 'rest_avatar_sizes', array $sizes )

Filters the REST avatar sizes.


Description Description

Use this filter to adjust the array of sizes returned by the rest_get_avatar_sizes function.


Parameters Parameters

$sizes

(array) An array of int values that are the pixel sizes for avatars. Default [ 24, 48, 96 ].


Top ↑

Source Source

File: wp-includes/rest-api.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.