Support » Plugin: Co-Authors Plus » Deactivate image dimensions of Guest Authors?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    They’re created so that you can use one of them if you’re showing avatars for guest authors. Because you can show avatars at different sizes, I thought it would be wise to pre-generate some of them.

    You’re welcome to remove the sizes using the filter.

    B_Dark

    (@b_dark)

    what filter?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    B_Dark

    (@b_dark)

    thnx! I removed the code from 123-133. Btw why you don’t use the mail of the guest authors that have registered on gravatar?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    I wouldn’t recommend removing the code. Instead you should apply a filter.

    It uses the email for the gravatar if no featured image is set.

    B_Dark

    (@b_dark)

    ok, and how i apply a filter?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hand Built

    Something like this should work (in your theme’s functions.php):

    add_filter( 'coauthors_guest_author_avatar_sizes', 'dbx_avatar_sizes' );
    function dbx_avatar_sizes() {
        return array();
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deactivate image dimensions of Guest Authors?’ is closed to new replies.