• Resolved romanhugo

    (@romanhugo)


    This plugin sets a custom field in the gravatar. I want to disable the feature in order to use a different avatar plugin. Unfortunately, there is a conflict when using different plugins together. How to disable this feature on dokan? Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @romanhugo ,

    Can you please be a little bit more specific and share the screenshot of the field you are referring to?

    Though we are unable to guarantee a fix for a third party plugin I will take a look if there is a workaround.

    Looking forward to your response.

    Thread Starter romanhugo

    (@romanhugo)

    ii solved this problem. I use plugin JetEngine for manage of profile and set avatar. I just change function in vendor.php.
    It was:

        public function get_avatar_id() {
            $avatar_id = (int) $this->get_info_part( 'gravatar' );
    
            return $avatar_id ? $avatar_id : 0;
        }

    Now:

        public function get_avatar_id() {
            $avatar_id = (int)  get_user_meta((int) $this->id, 'profile-picture', true );
    
            return $avatar_id ? $avatar_id : 3495;
        }

    Where:
    profile-picture – (meta key from JetEngine)
    3495 – placeholder id

    I will be grateful if you ll tell me how to use this function in my theme so that my changes are not lost after the plugin is updated.
    Thabk u!

    Hello @romanhugo ,

    I am glad to see that you have found this solution. Unfortunately, there is no hook or filter to override that exact function through a child theme.

    You may want to take a look at this filter we used on – \dokan-lite\includes\functions.php

    add_filter( 'get_avatar_url', 'dokan_get_avatar_url', 99, 3 );

    You can override this original filter by removing it.

    Thank you.

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

The topic ‘Gravatar meta field’ is closed to new replies.