/** * Delete team in player's history * * @param none * @return string */ public function delete_player_history_team() { global $wpdb; $db = new PHPLeague_Database(); $id_player_team = (int) $_POST['id_player_team']; $db->delete_player_history_team($id_player_team); $db->delete_player_team_data($id_player_team); _e('Team deleted successfully from the player history with all the data associated.', 'phpleague'); die; }