bp_enable_profile_gravatar( bool $default = false )
Are members able to use gravatars?
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: false.
Default value: false
Return
(bool) True if members able to use gravatars, otherwise false.
Source
File: bp-core/bp-core-options.php
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 | function bp_enable_profile_gravatar( $default = false ) { /** * Filters whether or not members are able to upload their own cover photos. * * @since BuddyPress 2.4.0 * * @param bool $value Whether or not members are able to upload their own cover photos. */ return (bool) apply_filters( 'bp_enable_profile_gravatar' , (bool) bp_get_option( 'bp-enable-profile-gravatar' , $default ) ); } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.9 | Introduced. |
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.