The option to disable XP that was available for level 1-49 characters and was scheduled to become available for level 1-59 with the launch of Dragonflight later this month.
A hotfix is currently being worked on which will make it active for levels 1-59 ahead of the release.