Integrate new Buddypress hook in edit.php / register.php (1 post)

  1. mmaller
    Posted 1 year ago #


    I like your theme very much! Great work!!

    I'm using "Buddypress Xprofile Custom Fields Type" and most of the flieds donĀ“t show up in the profile edit page. This plugin uses a new hook from buddypress 1.7 within the edit / register page. I included it myself, but could you integrate it in your source?

    Kind regards,

    The author writes in his support forum (http://wordpress.org/support/topic/birthdate-not-showing)

    First, thanks for reporting this. I download Custom Community theme and I see what you say. In your case, the problem is caused by the missing hook. Custom Community Theme doesn't have the new hook introduced by BP 1.7.

    So, for edit.php, go to custom-community/members/single/profile/edit.php. Just before this code:

    <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>

    Write this:

    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>

    The fields should appear. For registration page, do the same thing, before:

    <?php do_action( 'bp_custom_profile_edit_fields' ) ?>

    Write this:

    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>

    Try it and tell me if it solves your problem.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic