WordPress at a glance
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.

Usage

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

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

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.