That will be the problem. The WP Discourse plugin has a 'wpdc_sso_avatar_url'
filter that can be used to filter the avatar URL that is passed to Discourse. The filter is passed two parameters: $avatar_url
, and $user_id
.
To avoid sending the default avatar to Discourse, you’d need to add some code to your theme’s functions.php
file that hooks into the filter and returns an empty string for users who have the default avatar:
add_filter( 'wpdc_sso_avatar_url', 'wpdc_custom_sso_avatar_url', 10, 2 );
function wpdc_custom_sso_avatar_url( $avatar_url, $user_id ) {
if ( /* some condition that returns true for users with the default avatar */ ) {
return '';
}
return $avatar_url;
}