wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_avatar_sizes › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 )
Parameter:
  • (int[]) $sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the REST avatar sizes.

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





Quellcode

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