Update functions.php

This commit is contained in:
2017-07-10 09:30:49 +03:00
committed by GitHub
parent aca50a85cf
commit 5fb1f274c8
+2
View File
@@ -1,5 +1,7 @@
<?php
add_filter('bp_core_fetch_avatar_no_grav', '__return_true'); //removes the standard "mystery man" gravatar
function set_avatar_based_on_first_letter( $avatar, $params ) {
$user_id = $params['item_id'];
$name_field = 1; //profile field id