Sounds great. Thanks, Patrick!
Thanks for the reply. It seems to be the recommended solution when I did a search for issues with admin-ajax.php and is_admin(). WordPress is a little weird how the recommended way to do ajax calls on the frontend is through an admin script!
I’m not sure if there might be a case where you could be using ajax within the admin and it could cause a problem?