Filter hook 'rest_avatar_sizes'

in WP Core File wp-includes/rest-api.php at line 1272

Description

Filters the REST avatar sizes. Use this filter to adjust the array of sizes returned by the `rest_get_avatar_sizes` function.

Occurrences

Filename Line Number
wp-includes/rest-api.php 1272

Parameters

Type Name Description
int[] $sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.

PHP Doc

/**
	 * Filters the REST avatar sizes.
	 *
	 * Use this filter to adjust the array of sizes returned by the
	 * `rest_get_avatar_sizes` function.
	 *
	 * @since 4.4.0
	 *
	 * @param int[] $sizes An array of int values that are the pixel sizes for avatars.
	 *                     Default `[ 24, 48, 96 ]`.
	 */