How to increase password requirements for registration [closed]

Use a hook that fires later and add the $bp global to the function. Try this: function bp_password_beefing() { global $bp; if ( !empty( $_POST[‘signup_password’] ) ) if ( strlen( $_POST[‘signup_password’] ) < 6 ) $bp->signup->errors[‘signup_password’] = __( ‘Your password needs to be at least 6 characters’, ‘buddypress’ ); } add_action( ‘bp_signup_validate’, ‘bp_password_beefing’);

Remove tabs from buddypress groups and members pages [closed]

Managed to crawl through the core code and find this function: bp_core_remove_subnav_item So you can do something like this: function remove_group_options() { global $bp; bp_core_remove_subnav_item($bp->groups->slug, ‘members’); bp_core_remove_subnav_item($bp->groups->slug, ‘send-invites’); } add_action( ‘bp_setup_nav’, ‘remove_group_options’ );

Buddypress get member meta info for specific user ID [closed]

to get the buddypress profile field data use: bp_get_profile_field_data( array( ‘field’ => ‘your-field-slug’, ‘user_id’ => $user_id ) ); to get the avatar look up bp_get_member_avatar(), and for the name there is bp_displayed_user_fullname() but you need to be in the bp_has_members loop for that one.

How to modify an add_action() inside a loop of core function

Use the filter hook bp_members_signup_error_message Try: function signup_error_change( $error_message ) { $error_message = str_replace(‘<div class=”error”>’, ‘<span class=”val-error”>’, $error_message); $error_message = str_replace(‘</div>’, ‘</span>’, $error_message); return $error_message; } add_filter(‘bp_members_signup_error_message’, ‘signup_error_change’, 1, 1);