Add Custom Filter to Admin User list

Actually found a potential way (with WP3.1), but it’s a bit more involved than using filters: Since WP3.1 now uses the WP_List_Class to generate the admin pages, you can create your own My_User_List_Table class, inheriting from WP_Users_List_Table and in that class override the extra_tablenav() method. In your own method you duplicate the code from WP_Users_List_Table::extra_tablenav() … Read more

Limitations when adding new users

WordPress doesn’t have any real limitation to that although your wp_users table may not be optimized and the queries to it become slow. Try doing this: Repair and optimize your tables Add Indexes to frequently used columns such as user_login or user_nicename and play around until it speeds everything up a bit You may also … Read more

Menu page with list of users

As a plugin all that I can give to you is this. <?php /* Plugin Name: Users Table Plugin URI: http://www.exe.ie Description: A list of all available users with their ID, Name, Registration Date, Nickname, User Level and User Role Version: 1.0 Author: Daniel Conde Author URI: http://www.exe.ie License: GPL */ add_action(‘admin_menu’, ‘my_user_table_menu’); function my_user_table_menu() … Read more

Remove admin menu

There are three ways to do this I guess. First, you could start with blocking all access to admin.php and then whitelist the pages they are allowed to browse. Unless your users are really restricted this may take a while to figure out. Second, you could use the built-in capability system of WP, removing capabilities … Read more

Commenting in user profile page?

Hi @Towfiq: Comments are related in the database to Posts. You’ll have to do a lot of work to get Comments to relate to Users. Have you considered creating a Custom Post Type for Users and then use either a user_meta field to store the post_id, or a postmeta field to store the user_id, or … Read more

Display list of uploaded images, filtered by user under a specific user group

This example loops through all photographers and then displays all images uploaded by them: <ul> <?php $photographers = get_users( ‘role=photographer’ ); foreach( $photographers as $user ) : $pictures = new WP_Query( array( ‘author’ => $user->ID, ‘post_type’ => ‘attachment’, ‘post_status’ => ‘inheret’, ‘posts_per_page’ => -1 ) ); echo ‘<li><h3>’ . $user->user_nicename . ‘</h3>’; if ( $pictures->posts … Read more