Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_avatar_sizes

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1193       *
1194       * Use this filter to adjust the array of sizes returned by the
1195       * `rest_get_avatar_sizes` function.
1196       *
1197       * @since 4.4.0
1198       *
1199       * @param int[] $sizes An array of int values that are the pixel sizes for avatars.
1200       *                     Default `[ 24, 48, 96 ]`.
1201       */
1202      return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );
1203 }
1204
1205 /**
1206  * Parses an RFC3339 time into a Unix timestamp.
1207  *
1208  * @since 4.4.0
1209  *
1210  * @param string $date      RFC3339 timestamp.
1211  * @param bool   $force_utc Optional. Whether to force UTC timezone instead of using