Changing a username

You can look at the user_login column at the wp_users table. You can edit these values using any database tool (my favorite is PHPMyadmin http://www.phpmyadmin.net/home_page/index.php),

Users: List A to Z, for Users

There’s the WP_User_Query for that: /** * List all Users * Use as: Template Tag * * @uses WP_User_Query * @return (array) List of user objects */ wpse35713_get_users_list() { $query = new WP_User_Query( array( ‘order’ => ‘ASC’ ,’orderby’ => ‘login’ ) ); $users = $query->get_results(); $html = “<ul><li>”; foreach ( $users as $user ) { … Read more

How to delete all post and attachments of a user when I delete it?

The hook you choose is appropriate, and here is how to use it to delete all posts of all types (posts, pages, links, attachments, etc) of the deleted user: add_action(‘delete_user’, ‘my_delete_user’); function my_delete_user($user_id) { $args = array ( ‘numberposts’ => -1, ‘post_type’ => ‘any’, ‘author’ => $user_id ); // get all posts by this user: … Read more

Forcing WordPress to work differently

Yeah, the multiple user under one account is not stock with WordPress. You would essentially have to reprogram a lot of stuff to get everything you are wanting, and hacking the core is a no-no, as all updates would just over-write it. So you wouldn’t be able to update it, or have a lot of … Read more

show text If special user is logged

I am not sure exactly what you are asking for, but, if you want to target a specific user ID, just do something like: // set special user id $special_user_id = 5; $current_user_id = get_current_user_id(); if ( $special_user_id == $current_user_id ){ echo ‘special user is online’; } You get the idea.