How to trigger function call when a Custom Domain is Added for a site?

Hi guys!

How can I trigger a PHP function to run immediately before or after a site is mapped?

Hoping there's a WordPress "hook" or some way to add this to functions.php without impacting the plugin directly. :slight_smile:

The goal is that when a user goes to Tools -> "Domain Mapping" and enters the custom domain and clicks "Add" we would fire a PHP function.

That PHP function would make a simple API call which activates that custom domain in our DNS service that manages our domains.

Thanks!