bp_core_set_avatar_constants()
Set up the constants we need for avatar support.
Description Description
Source Source
File: bp-core/bp-core-avatars.php
function bp_core_set_avatar_constants() { $bp = buddypress(); 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 ); if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) ) define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 450 ); if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) { define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', bp_attachments_get_max_upload_file_size( 'avatar' ) ); } if ( ! defined( 'BP_SHOW_AVATARS' ) ) { define( 'BP_SHOW_AVATARS', bp_get_option( 'show_avatars' ) ); } }
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |