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
1233       *
1234       * Use this filter to adjust the array of sizes returned by the
1235       * `rest_get_avatar_sizes` function.
1236       *
1237       * @since 4.4.0
1238       *
1239       * @param int[] $sizes An array of int values that are the pixel sizes for avatars.
1240       *                     Default `[ 24, 48, 96 ]`.
1241       */
1242      return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );
1243 }
1244
1245 /**
1246  * Parses an RFC3339 time into a Unix timestamp.
1247  *
1248  * @since 4.4.0
1249  *
1250  * @param string $date      RFC3339 timestamp.
1251  * @param bool   $force_utc Optional. Whether to force UTC timezone instead of using