WordPress.org

Ready to get started?Download WordPress

Forums

Super admin for single site (1 post)

  1. luiggiggi
    Member
    Posted 3 years ago #

    Hi to everyone,

    i'd like to know if there's a way to add an administrator that is hidden to other users (without plugins, of course).

    actually i've made an hard hack to the core (since i'll don't upgrade wordpress anymore) by replacing these lines:

    if ($user_login != 'admin'):
        if ($userid != '1')://
            $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"';
            echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] );
        endif;//
    else:
        $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"';
        echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] );
    endif;

    in the users.php code (starting from line 490).

    if someone has something better to propose please reply me.

    thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic