Is possible to modify user_login after registration?

WordPress does not allow updating user_login for existing users. You may update it using $wpdb->update as below: // Sanitizes the username $user_login = sanitize_user( trim( $user_login ), true ); // Check if the given username exists if ( ! empty( $user_login ) && ! username_exists( $user_login ) ) { global $wpdb; //Update user record $wpdb->update( … Read more

List all authors by matching custom meta data on a category page

Try the WP_User_Query, something like: $term = get_queried_object(); $users = new WP_User_Query(array( ‘meta_key’ => ‘your_meta_key’, // the key in which you store your terms ‘meta_value’ => (int)$term->term_id, // assuming you store term IDs )); print_r($users->get_results()); A update based on your input: $term = get_queried_object(); $user_query = new WP_User_Query(array( ‘role’ => ‘subscriber’, // or whatever your … Read more

buddypress edit profile [closed]

I managed to use $bp->template_message this was a bit tricky but then I had to go to bp-xprofile-screens.php just under line 77 I added unset($is_required[1]); to remove the username update, (as this does not need changing) 🙂 hope someone else, may find this useful.

Modify Profile Biographical Info Field

thanks @toscho A quick tweak on toscho’s Remove Bio Box code add_action( ‘personal_options’, array ( ‘T5_Hide_Profile_Bio_Box’, ‘start’ ) ); /** * Captures the part with the biobox in an output buffer and removes it. * * @author Thomas Scholz, <[email protected]> * */ class T5_Hide_Profile_Bio_Box { /** * Called on ‘personal_options’. * * @return void */ … Read more

Author.php display profile for all types of users

You can try to catch the 404 template and redirect it to the author template which will usee the same template for all users even if they are subscribers (or any other which have zero posts) something like this: function no_404_for_all_users($template) { global $wp_query; if( !is_author() && get_query_var(‘author’) && (0 == $wp_query->posts->post) ) { return … Read more