The nd-learning plugin prior to 4.8 for WordPress has a nopriv_ AJAX action that allows modification of the siteurl setting.
learning courses project learning courses