@raviousprime
2 years, 5 months ago
Hello,
Please try the following code:
add_action( 'bp_before_register_page', function () { esc_html_e( 'Before register page content goes here.' ); } );
It will display the content before register form. You can place this code in your active theme ‘functions.php’ file or ‘bp-custom.php’ file.
Regards Ravi
3 years, 1 month ago
For categorising users in BuddyPress space you can use BuddyPress Member Types comes in core plugin. You can find under Users > Member Types and use following plugin which allows selecting member type on registration as a signup xprofile field.
Plugin: https://buddydev.com/plugins/bp-xprofile-member-type-field/
Regards
5 years, 2 months ago
you can do something like. It will print nothing when got 0.
$count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); $count = empty( $count ) ? '' : $count;
and use this variable in your code.
It can be done will a few lines of code. Please refer the following URL: https://gist.github.com/raviousprime/ea52f4b1ebb531731387a70eb95e91c8
It adds users with subscriber role to the group when created.