Eluxadoline, an orally active mixed μ opioid receptor (μOR) agonist δ opioid receptor (δOR) antagonist developed for the treatment of diarrhea-predominant irritable bowel syndrome, normalizes gastrointestinal (GI) transit and defecation under conditions of novel environment stress or post-inflammatory altered GI function.