How to get Avatars to show in Woopra when using WP User Avatar Plugin
-
Was scratching my head a bit today, trying to figure out a workaround, and finally came up with this.
We’re running WP User Avatars so that our members show up in bbPress forums and WooCommerce at 1WD.tv
Out of the box, couldn’t get avatars to show up in Woopra.
Made a change to frontend.php around line 85 and this did the trick!
(note the avatar reference line)/** * Loads WordPress User & identifies it * @return none */ function woopra_detect() { if (is_user_logged_in()) { $current_user = wp_get_current_user(); $this->user['name'] = $current_user->display_name; $this->user['email'] = $current_user->user_email; $this->user['avatar'] = get_wp_user_avatar_src($current_user->ID, 'thumbnail'); if (current_user_can('manage_options')) { $this->user['admin'] = true; } } // Identify with woopra if ($this->get_option('auto_tagging')) { $this->woopra->identify($this->user); } }
- The topic ‘How to get Avatars to show in Woopra when using WP User Avatar Plugin’ is closed to new replies.