Support » Plugin: User Photo » Showing photos in Dashboard>Users

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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!

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing photos in Dashboard>Users’ is closed to new replies.