Change user slug in Buddypress
Place the following code in your theme’s functions.php file: add_filter( ‘bp_core_enable_root_profiles’, ‘__return_true’ ); I hope this helps.
Place the following code in your theme’s functions.php file: add_filter( ‘bp_core_enable_root_profiles’, ‘__return_true’ ); I hope this helps.
It sounds like you are using a bp_has_members loop on some page. I don’t think you can change a define while in a loop. In that loop, do you have this code? <a href=”https://wordpress.stackexchange.com/questions/226262/<?php bp_member_permalink(); ?>”><?php bp_member_avatar(); ?></a> And / Or: <a href=”https://wordpress.stackexchange.com/questions/226262/<?php bp_member_permalink(); ?>”><?php bp_member_name(); ?></a> Then you could do something like this: <?php … Read more
If you look at the source code of wp_list_authors you will see that the link is generated by a call to get_author_posts_url. The latter has a filter that allows for modification of the url. So, you would have to find the filters in BuddyPress and bbPress and remove them.
No. You can only override template files.
Assuming there is some commonality between the users you want to delete, you might look at the answers to this question: Delete all subscribers from wp_users and wp_usermeta a few thousand at a time Make sure you have a backup of your database, though, as an error in the selection of the users could delete … Read more
It depends on what the function myAction() is doing. Your order is this: pluging defines action hook with do_action( ‘bp_members_delete_account_after_submit’ ); You hook a function on that with add_action( ‘bp_members_delete_account_after_submit’, ‘action_bp_members_delete_account_after_submit’ ); the function action_bp_members_delete_account_after_submit() is then adding a hook named ‘myAction’ and passing it two arguments as strings ‘arg1’ and ‘arg2’. But there is … Read more
I think the function you are looking for is bp_displayed_user_id(). That will get the ID of the user whose profile is currently being displayed. Then, you can check their role like this: $user = get_userdata( bp_displayed_user_id() ); if ( ! in_array( ‘subscriber’, (array) $user->roles ) ) { return; } You could also use user_can(), but … Read more
In general for complicated map features I either use the gmaps API and pass the wordpress data to the initiation script via localization and json_encode() or the MapPress plugin for simpler things. it’s highly unlikely that you’re going to find something that does what you want out of the box though.
So the issue has already been resolved via the comments and the current state of the question already includes the corrected code. But I thought I should post this answer as a reminder for you, me and everyone reading this. 🙂 So first off, here’s a helpful excerpt from an article on WP Engine: The … Read more
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><img src=”%s” style=”width: 15px”> %s’ . “\n”, esc_attr( ‘link-‘ . $user->ID ), esc_url( $user->image ), esc_html( $user->name … Read more