rest_avatar_sizes

rest_avatar_sizes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_avatar_sizes') is found 1 times:

  • /wp-includes/rest-api.php line 1301
    	 *
    	 * @param int[] $sizes An array of int values that are the pixel sizes for avatars.
    	 *                     Default `[ 24, 48, 96 ]`.
    	 */
    	return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );
    }
    
    /**
     * Parses an RFC3339 time into a Unix timestamp.
     *
     * Explicitly check for `false` to detect failure, as zero is a valid return