Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Ron Zvagelsky

    (@rzvagelsky)

    Anyone?

    Seeking this solution too, anyone can help?

    Ok, found an interim solution.

    In /base-classes/UserQuery.php
    FIND

    //TODO: case admins, moderators, commenters, etc.
    		if (!empty($q['user_type'])) {
    			switch($q['user_type']) {
    				case 'authors':
    					$distinct .= 'DISTINCT';
    					$join .= " INNER JOIN $wpdb->posts ON ($wpdb->users.ID = $wpdb->posts.post_author) ";
    					$where .= " AND $wpdb->posts.post_type = 'post' AND $wpdb->posts.post_status = 'publish' ";
    					break;
    				case 'registered':
    					break;
    				default:
    					$where .= " AND 1=0 ";
    					break;
    			}
    		}

    CHANGE THIS PART:

    case 'registered':
    					break;

    TO:

    case 'registered':
    					$where .= " AND $wpdb->users.ID != '1' ";
    					break;

    This change assumes you only have 1 admin user, whose user ID is 1 and will hide his/her profile from the user list page (http://example.com/people)

    Thread Starter Ron Zvagelsky

    (@rzvagelsky)

    Thanks!

    May i know Where Exactly can we find the file UserQuery.php???

    on the left sidebar for the dashboard under pluging you will find an editor option. after clicking that, on the right side will be a drop down menu, choose the plugin you are editing and then find the file you need.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Aleph] Hide Admin From User List’ is closed to new replies.