WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Deactivate image dimensions of Guest Authors? (8 posts)

  1. B_Dark
    Member
    Posted 1 year ago #

    Why they are created(reason used),and how can i deactivate it?

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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.

  3. B_Dark
    Member
    Posted 1 year ago #

    what filter?

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

  5. B_Dark
    Member
    Posted 1 year ago #

    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?

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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.

  7. B_Dark
    Member
    Posted 1 year ago #

    ok, and how i apply a filter?

  8. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    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();
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.