users joined group count in buddypress

To get the group count, use groups_get_user_groups. Find it in: buddypress\bp-groups\bp-groups-functions.php In the members loop, the member id is provided via: bp_member_user_id() You will need to check the member-loop template to find out how to hook into the loop. Or overload that template in your child theme and add a do_action wherever you want it. … Read more

copy fields value to another field

You do not need to, instead add the user URL column to the list of searchable table columns https://developer.wordpress.org/reference/hooks/user_search_columns/ Which includes a user contributed example that does this: https://developer.wordpress.org/reference/hooks/user_search_columns/#comment-4605 add_filter( ‘user_search_columns’, ‘wpdocs_filter_function_name’, 10, 3 ); function wpdocs_filter_function_name( $search_columns, $search, $wp_user_query ) { $search_columns[] = ‘user_url’; return $search_columns; } With this, no syncing to a URL … Read more

Redirecting non-logged in users trying to view Group pages but not the Group directory

It looks like bp_is_group() is “does the current page belong to a single group” (as opposed to bp_is_groups_directory()): /*** Redirect non logged-in users to registration page if they visit a profile page or a group page other than the groups directory ***/ function gwangi_bp_logged_out_page_template_redirect() { if( ! is_user_logged_in() && ( bp_is_user() || bp_is_group() ) ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)