WordPress.org

Forums

User Profile Picture
[resolved] Override Avatar on by default (7 posts)

  1. Long Beach Web Design
    Member
    Posted 2 years ago #

    Hi, love the plugin so far. Is there a way to just turn "Override Avatar" on by default so my users do not have to click that button?

    http://wordpress.org/extend/plugins/metronet-profile-picture/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 2 years ago #

    Since it's an add-on feature, I feel the option must be "opt in" instead of "opt out". I'd love to hear from others though that use the plugin and see if they want this feature on by default, but for now, it's off by default.

  3. Long Beach Web Design
    Member
    Posted 2 years ago #

    Yes, I can understand this. The reason why I wanted the option is because I use s2member plugin and in their profile sidebar they use the get_avatar and your plugin will can replace that, but only if they check that box, otherwise s2member will not show a photo at all. I can easily modify the core files, but liked the plugin and was looking for a long term solution that will be updateable.

  4. Ronald Huereca
    Member
    Plugin Author

    Posted 2 years ago #

    What if I added a filter that you could hook into. Would that be doable?

    I want to avoid adding plugin options since there aren't any at the moment aside from what you see on the user profile page.

  5. Long Beach Web Design
    Member
    Posted 2 years ago #

    Yeah I think that would work. Thanks!

  6. Ronald Huereca
    Member
    Plugin Author

    Posted 2 years ago #

    I just released version 1.0.20 with the filter in there.

    To have the checkbox checked by default, just drop this into your theme's functions.php file:

    add_filter( 'mpp_avatar_override', '__return_true' );

    Just a note that if a user has saved their profile, it will use that option instead of the filter.

    If this helps, please consider leaving a rating/review.

  7. Long Beach Web Design
    Member
    Posted 2 years ago #

    Awesome! I will do!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Profile Picture
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.