Recommended Posts

Default Avatars in WordPress are replaced with IPS Avatars. IPBWI for WordPress v4 uses the following hooks:

add_filter('pre_get_avatar', array($this->avatars,'ipb_get_avatar'), 99 , 5);
add_filter('get_avatar', array($this->avatars,'ipb_get_avatar'), 99 , 5);

If you want to add new hooks for compatibility to third party plugins, like buddypress, you may add them like this:

add_filter('JUST_ANOTHER_AVATAR_HOOK', array($GLOBALS['ipbwi4wp']->avatars,'ipb_get_avatar'), 99 , 5);

The example above is just for orentiation, please note that no free support can be provided for hooking into other third party plugins.

Share this post

Link to post
Share on other sites