5

Finally, I found the solution. Here is the code if anyone has the same issue and want to refer it. Using Action function wf_validate_email_domain() { global $bp; $email = $bp->signup->email; $email_exploded = explode('@', $email); // split on @ and return last value of array (the domain) $domain = array_pop($email_exploded)...


4

The forum id for a group is stored in the {yourprefix}_bp_groups_groupsmeta table where group_id is the group id and the key is forum_id and the value is a serialized array. Instead of a shortcode, it may be easier to add a function call in a bp groups template. Something like: echo gauray_recent_replies( bp_get_group_id() ); function ...


1

Try this but note that it may not send the message: '<span id="%s" href="#"></span><img src="%s" style="width: 15px"> %s %s' . "\n", esc_attr( 'link-' . $user->ID ), esc_url( $user->image ), esc_html( $user->name ), ' ' Or this: '<span id="%s" href="#"></span>&...


1

Plugins load alphabetically by default. If Buddypress is alphbetically before your plugins folder name, then Buddypress will load first and it's functions will be available. Additionally, whatever functionality depends on another plugins you can always attach to the plugins_loaded hook, which fires after all plugins are finished loading. For example: /** * ...


1

BP on multisite can be quite complicated. If you network-activated BP, then afaik the users will be available on all 'blogs'. There are several ways to config a BP > multisite install. There are a couple of plugins that may help, for example: https://buddydev.com/plugins/buddypress-multi-network/ More info from the BP codex: https://codex.buddypress....


Only top voted, non community-wiki answers of a minimum length are eligible