BuddyDev

Search

[Resolved] BuddyPress Multi Network Not Showing users on Member Page

  • Participant
    Level: Initiated
    Posts: 19
    freerunner on #11962

    Hi Brajesh,

    Any update on this issue?

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #11963

    Hi Jeremy,
    I will need some time with WooCommerce today.
    For me, BuddyPress is the primary plugin, so with something like this(a major plugin like WooCommerce enters the picture), It needs some extra time. I wish I was aware earlier that the registration was handled using WooCommerce.

    The Multi Network plugin supports BuddyPress registration by default only.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #11965

    Hi Again,
    I see that WooCommerce provides a hook. So, If it is WooCommerce registration,
    adding the following code to bp-custom.php

    
    
    /**
     * Add user registered via WooCommerce to current network.
     * @param $user_id
     */
    function buddydev_add_wc_user_to_network( $user_id ) {
    	if ( ! function_exists( 'mnetwork_add_user' ) ) {
    		return ;
    	}
    
    	$blog_id = get_current_blog_id();
    	mnetwork_add_user( $user_id, $blog_id );
    
    }
    
    add_action( 'woocommerce_created_customer', 'buddydev_add_wc_user_to_network' );
    

    And then registering a user will work. Can you please try that.

  • Participant
    Level: Initiated
    Posts: 19
    freerunner on #11966
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #11967
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19
    freerunner on #11968
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #11969
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19
    freerunner on #11974
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #11975
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19
    freerunner on #11982
    This reply has been marked as private.

The topic ‘ [Resolved] BuddyPress Multi Network Not Showing users on Member Page’ is closed to new replies.

This topic is: resolved