Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @raviousprime

    Participant

    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

    @raviousprime

    Participant

    Hello,

    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

    @raviousprime

    Participant

    Hello,

    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.

    Regards
    Ravi

    @raviousprime

    Participant

    Hello,

    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.

    Regards
    Ravi

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar