[buddypress-trac] [BuddyPress Trac] #8479: WP User Profile Compatibility

buddypress-trac noreply at wordpress.org
Wed Jun 2 03:34:34 UTC 2021


#8479: WP User Profile Compatibility
----------------------------+-----------------------------
 Reporter:  vanpop          |      Owner:  slaFFik
     Type:  enhancement     |     Status:  new
 Priority:  low             |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  trivial         |   Keywords:
----------------------------+-----------------------------
 Adding a check to see if the WP User Profiles plugin is active allows for
 creating a new WP User Profile section that adds the BuddyPress Extended
 Profile tab to the User Profile navigation by using 'bp-profile-edit' for
 the section/id/slug/name. Happy to explain further if that isn't clear and
 also happy to hear if what I'm doing is crazy and I should not do it.
 Thanks! :)

 By adding:

 {{{#!php
     if ( is_plugin_active( 'wp-user-profiles/wp-user-profiles.php' ) ) {
         return;
     }
 }}}

 after:

 {{{#!php
     if ( ! bp_current_user_can( 'bp_moderate' ) && empty(
 $this->is_self_profile ) ) {
         die( '-1' );
     }
 }}}

 at line 999 of class-bp-members-admin.php, the extended profile tab can be
 added to the WP User Profiles plugin tabbed nav. Happy to explain further
 if that isn't clear

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8479>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list