WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Super admin for single site (1 post)

  1. luiggiggi
    Member
    Posted 5 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