Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    currently in WPAdverts users cannot set their own avatars and the default WP avatars (or rather Gravatars will be used).

    If you would like the users to be able to change there profile images then you would need to use some third party plugin to do that, for example, the plugin https://pww.wp.xz.cn/plugins/wp-user-avatar/ should do that.

    we do not have an integration with WP User Avatar plugin but you should be able to include it in the Authors menu by adding the code below in your theme functions.php file

    
    add_filter( "adverts_authors_dashboard_menu", "change_author_menu_init", 10, 2 );
    function change_author_menu_init( $menu, $shortcode_atts ) {
       $page_slug = "custom-page";
        $menu[$page_slug] = array(
            "label" => __("Custom Menu", "wpadverts-authors"),
            "href"  =>  add_query_arg( "author-panel", $page_slug, $url ),
            "icon"  => "adverts-icon-box",
            "callback" => "authors_wp_user_avatar_integration"
        );
        // Always return $menu!
        return $menu; 
    }
    function authors_wp_user_avatar_integration($panel) {
      if($panel != 'custom-page') {
            return "";
        }
        return do_shortcode("[avatar_upload]");
    }
    
Viewing 1 replies (of 1 total)

The topic ‘Profile image upload?’ is closed to new replies.