BuddyDev

Search

One Snippet (your) don't worl – Joint group after suscribe

Tagged: 

  • Participant
    Level: Master
    Posts: 251
    MICHAEL on #21697

    Hi Brajesh 🙂

    Just for said you, your snippet for one member is in one group direct after suscribe don’t work =o
    https://nsa40.casimages.com/img/2019/03/26/190326071932955672.jpg

    Have a good day

    Michaël

    • This topic was modified 5 years ago by MICHAEL. Reason: joint screen snippet
  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #21719

    Hi Michaël

    Is it happening for non public groups?
    The code works in normal circumstances. If it is not, some other plugin is doing a redirect before this gets called.

    I will suggest changing this

    
    add_action( 'bp_core_activated_user', 'bpdev_join_group_on_signup' );
    
    

    to

    
    add_action( 'bp_core_activated_user', 'bpdev_join_group_on_signup', -1 );
    
    

    and see if it works or not?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved