getButterfly
Resume

NAVIGATION

ATTRIBUTION

getButterfly
Dublin, Ireland

All Content Copyright ©2019
getButterfly

ImagePress: How to add a default avatar

ImagePress Author Discovery

This small function allows you to change the default WordPress avatar when using ImagePress and skip all WordPress-generated ones.

This feature works with ImagePress version 7 or higher.

add_filter('avatar_defaults', 'imagepress_default_gravatar');

function imagepress_default_gravatar($avatar_defaults) {
    $myavatar = 'path/to/your/avatar.jpg';
    $avatar_defaults[$myavatar] = 'Default ImagePress Avatar';

    return $avatar_defaults;
}

Use this in your theme’s functions.php file or in a custom plugin.

Added by Ciprian on Tuesday, July 17, 2018 in Blog, ImagePress

Do you want better SEO? More traffic? More conversions? More growth? We help companies exponentially grow their traffic and conversions, while outranking their competitors. With more than 10 years of experience, we’ve learned what is valuable to our clients.
SEO Dublin | SEO Malta

My Battle Tested Recommendations

Jetpack
Dreamhost
WordPress.com
CodeCanyon
SEMrush

Disclaimer: These recommendations contain affiliate links.


Privacy Policy