wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_avatar_sizes › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 )
Parameters:
  • (int[]) $sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
    Required: Yes
Defined at:
Codex:

Filters the REST avatar sizes.

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





Source

return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );