Forum Replies Created

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

    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!

Viewing 2 replies - 1 through 2 (of 2 total)