[buddypress-trac] [BuddyPress Trac] #7077: Add a global scope option to the BP taxonomy wrapper functions

buddypress-trac noreply at wordpress.org
Fri May 20 22:45:56 UTC 2016


#7077: Add a global scope option to the BP taxonomy wrapper functions
------------------------------+-----------------------------
 Reporter:  rekmla            |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Component - Core  |    Version:
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------------
 In a multi-network WP install, wp_user is shared by all networks.
 BuddyPress can be configured with global member profile tables. However,
 member type is implemented as a custom taxonomy and each site with
 BuddyPress active will have it's own copy of member type term object
 relationships.

 This patch allows a site owner to override the default behavior and store
 term object relationships in the root blog of the primary network instead
 of the root blog of the current network. This allows member type to be
 consistent across all networks.

 To turn on global scope for a BP custom taxonomy (bp_member_type) one
 would add the following function and filter to bp-custom.php

 {{{#!php
 function my_custom_bp_taxonomy_scope( $scope ) {
     return 'global';
 }
 add_filter( 'bp_taxonomy_bp_member_type_scope',
 'my_custom_bp_taxonomy_scope' );
 }}}

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


More information about the buddypress-trac mailing list