• Resolved nM_WP

    (@mndotmail)


    We are building a social login for subscribers and would like to override simple-local-avatars.

    Tried using both with no luck:
    add_filter('simple_local_avatar', array($this, 'social_avatar'), 1, 5); add_filter('get_avatar', array($this, 'social_avatar'), 1, 5);

    How can we add_filter to override simple-local-avatars?

Viewing 1 replies (of 1 total)
  • Plugin Support Darin Kotter

    (@dkotter)

    @mndotmail Thanks for the question. Can you provide more details on how you’re currently outputting avatars? Depending on how you’re doing that will determine what filter(s) you need to use to override.

    In general though, get_avatar should work as a filter here, though that will override the entire HTML markup, not just the image src.

    This plugin hooks into pre_get_avatar_data to override the actual image src, so you could do the same thing if you want, just at a later priority (we use priority 10)

Viewing 1 replies (of 1 total)
  • The topic ‘How to add_filter to override for Social signed user?’ is closed to new replies.