Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem when i upload avatar in registration page.

Viewing 1 replies (of 1 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @chavodbharat

    No need to edit the core file. The bp_attachments_current_user_can filter can be used here.

    add_filter( 'bp_attachments_current_user_can', function( $can, $capability ) {
        if ( 'edit_avatar' !== $capability ) {
            return $can;
        }
        // This will let all users upload an avatar (not just logged in members).
        $can = true;
        return $can;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar