Skip to content

Instantly share code, notes, and snippets.

@DrewAPicture
Created October 9, 2013 19:15
Show Gist options
  • Save DrewAPicture/6906626 to your computer and use it in GitHub Desktop.
Save DrewAPicture/6906626 to your computer and use it in GitHub Desktop.
<?php
/**
* @type string|bool $avatar_dir The name of the subdirectory where the requested avatar should
* be found. If no value is passed, 'avatar_dir' is inferred from 'object': 'user' becomes
* 'avatars', 'group' becomes 'group-avatars', 'blog' becomes 'blog-avatars'. Remember that
* this string denotes a subdirectory of BP's main avatar directory (usually based on
* {@link wp_upload_dir()}); it's a string like 'group-avatars' rather than the full directory
* path. Generally, it'll only be necessary to override the default value if storing avatars
* in a non-default location. Defaults to false (auto-detected).
* @type int|bool $width Requested avatar width. The unit is px. This value is used to build the
* 'width' attribute for the <img> element. If no value is passed, BP uses the global avatar
* width for this avatar type. Default: false (auto-detected).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment