Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created March 26, 2019 21:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/40f0e1f09e7b4349e291e5377443d2f7 to your computer and use it in GitHub Desktop.
Save KaineLabs/40f0e1f09e7b4349e291e5377443d2f7 to your computer and use it in GitHub Desktop.
Set Buddypress Avatars Dimensions.
<?php
// Define Buddypress Avatars Dimensions.
if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) ) {
define( 'BP_AVATAR_THUMB_WIDTH', 50 );
}
if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) {
define( 'BP_AVATAR_THUMB_HEIGHT', 50 );
}
if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) ) {
define( 'BP_AVATAR_FULL_WIDTH', 150 );
}
if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) ) {
define( 'BP_AVATAR_FULL_HEIGHT', 150 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment