public/wordpress/wp-content/plugins/front-end-only-users/Functions/Update_Admin_Databases.php
/* Deletes a single user with a given ID in the FEUP database */
Deletes a single user with a given ID in the FEUP database
Deletes a single user with a given ID in the FEUP database
function Delete_EWD_FEUP_User($User_ID) {
	global $wpdb;
	global $ewd_feup_user_table_name;
	global $ewd_feup_user_fields_table_name;
	$wpdb->delete(
		$ewd_feup_user_table_name,
		array('User_ID' => $User_ID)
	);
	$wpdb->delete(
		$ewd_feup_user_fields_table_name,
		array('User_ID' => $User_ID)
	);
	$update = __("User has been successfully deleted.", 'front-end-only-users');
	$user_update = array("Message_Type" => "Update", "Message" => $update);
	return $user_update;
}
function Delete_EWD_FEUP_User ( $ User_ID ) { global $ wpdb ; global $ ewd_feup_user_table_name ; global $ ewd_feup_user_fields_table_name ; $ wpdb -> delete ( $ ewd_feup_user_table_name , array ( 'User_ID' => $ User_ID ) ) ; $ wpdb -> delete ( $ ewd_feup_user_fields_table_name , array ( 'User_ID' => $ User_ID ) ) ; $ update = __ ( " User has been successfully deleted. " , 'front-end-only-users' ) ; $ user_update = array ( " Message_Type " => " Update " , " Message " => $ update ) ; return $ user_update ; }
Deletes a single user with a given ID in the FEUP database
Deletes a single user with a given ID in the FEUP database