bp_enable_gravatar_callback()
Description
Source
File: bp-core/bp-core-filters.php
75 76 77 78 79 80 81 82 83 84 85 86 87 | function bp_enable_gravatar_callback() { $avatar = (bool) bp_get_option( 'bp-enable-profile-gravatar' , false ); if ( false === $avatar ) { // Avatars /** * Disable gravatars fallback for member avatars. * @since BuddyBoss 1.0.0 */ add_filter( 'bp_core_fetch_avatar_no_grav' , '__return_true' ); } } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.