• Basically, I use BuddyPress on my site and I have an add-on called liveTV Bundle which allows me to integrate a user’s Twitch.tv or Own3d.tv stream into their profile and have it display as a thumbnail on a different streaming page.

    Right now, the addon adds a new section to the default WordPress user profile page where the user can add their stream ID and delete existing streams they’ve attached to their profile. I don’t want people to have to edit two profiles, and I’d like to see if there’s any way to hook those fields into the BP profile edit page or if maybe I can just copy the display code into the BP profile edit page.

    This is the code that the plugin currently uses to hook those fields into the default profile. What hooks would I need to have them appear in the BP extended profile edit page? Or is there a better way to do it?

    //Now hook to create extra profil fields
    add_action( 'edit_user_profile', 'livetv_show_extra_profile_fields' );
    //When the current on the current profil has capabilties to edit -> display
    add_action( 'edit_user_profile_update', 'livetv_save_extra_profile_fields' );
    //When the current on the current profil has capabilties to edit -> update

    add_action( 'show_user_profile', 'livetv_show_extra_profile_fields' );
    //When the current on the current profil has capabilties to show -> display
    add_action( 'personal_options_update', 'livetv_save_extra_profile_fields' );
    //When the current on the current profil is the current and edit -> update

    if(!is_admin)
    {
    //Frontend plugins compatibility
    add_action('profile_personal_options', 'livetv_show_extra_profile_fields');
    //When the current on the current profil is the current and show -> display
    }

    I appreciate any help I can get. Not completely proficient in this type of coding, so please bear with me. Thank you so much!

  • The topic ‘Using BuddyPress, trying to hook plugin-generated profile fields to BP profile’ is closed to new replies.