WordPress.org

Ready to get started?Download WordPress

Forums

User Photo
[resolved] Showing photos in Dashboard>Users (4 posts)

  1. milosp
    Member
    Posted 7 months ago #

    Is this possible to show photos instead of gravatars here?
    I expected 'Override Avatar with User Photo' will do exactly that.

    http://wordpress.org/plugins/user-photo/

  2. daavem
    Member
    Posted 7 months ago #

    The plugin is disabled for the admin panel and will only function for the front end. If you feel like manually editing the plugin open up user-photo.php and find the following function.

    function userphoto__init(){
    	if(get_option('userphoto_override_avatar') && !is_admin())
    		add_filter('get_avatar', 'userphoto_filter_get_avatar', 10, 4);
    }

    Simply just remove the && !is_admin() from this function and the 'Override Avatar with User Photo' will work within the admin & front-end.

    Just in case you're feeling lazy:

    function userphoto__init(){
    	if(get_option('userphoto_override_avatar'))
    		add_filter('get_avatar', 'userphoto_filter_get_avatar', 10, 4);
    }

    Be warned when editing plugins as an update could revert your changes, the author should really make this another option in the admin panel!

  3. milosp
    Member
    Posted 7 months ago #

    That fixed the problem. I am wondering why that is not default, but the fix is quick enough. Thanks!

  4. daavem
    Member
    Posted 7 months ago #

    I'm not sure either, wouldn't take long to add into an option in the settings.

    There maybe some reason that the original author did it, but I can't see any issues so far.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.