WordPress at Your Fingertips
filter is not described

rest_avatar_sizes filter-hook . WP 4.4.0

Filters the REST avatar sizes.

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


add_filter( 'rest_avatar_sizes', 'filter_function_name_2002' );
function filter_function_name_2002( $sizes ){
	// filter...

	return $sizes;
An array of int values that are the pixel sizes for avatars.
Default: [ 24, 48, 96 ]

Where the hook is called

wp-includes/rest-api.php 1202
return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );

Where in WP core the hook is used WordPress

Usage not found.