wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_avatar_sizes › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 )
Parametry:
  • () sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the REST avatar sizes.

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




Źródło

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