Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/05/2016 03:05:16 PM (5 years ago)
Author:
dcavins
Message:

bp_core_fetch_avatar(): Add "d" filter.

Add a filter for the Gravatar “d,” or
“default_gravatar” parameter.

Props henry.wright.

Fixes #6989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r10654 r10688  
    637637            $url_args['r'] = strtolower( $params['rating'] );
    638638        }
     639
     640        /**
     641         * Filters the Gravatar "d" parameter.
     642         *
     643         * @since 2.6.0
     644         *
     645         * @param string $default_grav The avatar default.
     646         * @param array $params The avatar's data.
     647         */
     648        $default_grav = apply_filters( 'bp_core_avatar_default', $default_grav, $params );
     649
    639650        // Only set default image if 'Gravatar Logo' is not requested.
    640651        if ( 'gravatar_default' !== $default_grav ) {
Note: See TracChangeset for help on using the changeset viewer.