Skip to:
Content
Pages
Categories
Search
Top
Bottom

Let users edit custom profile.php


  • Emineminero
    Participant

    @emineminero

    Hi, im using wp 4.0 and bp 2.1.1 andd i would like to know if i can let my users to access to ther custom profile, not the profile that Buddypress generates. This is what i want, i want them to click on their names or “Editar mi perfil” (edit my profile)
    and redirect them to http://www.mysite.com/wp-admin/user/profile.php

    I want to do that because i have an option(plugin) that allows them to link Their social network to the page and login from it and buddypress profile’s style doesnt show that option

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

  • shanebp
    Moderator

    @shanebp

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php

    And put what you want into it, such as a link to wp-admin/user/profile.php

    For example:

    if( bp_is_my_profile() ) { 
       global $current_user;
       get_currentuserinfo();
       $login_name = $current_user->user_login;
       echo '<a href="' . site_url() . '/wp-admin/' . $login_name . '/profile.php">Edit Your Profile</a>';
    }

    Emineminero
    Participant

    @emineminero

    Sir, you made my day. Thanks @Shanebp!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Let users edit custom profile.php’ is closed to new replies.
Skip to toolbar