Inpsyde\MultilingualPress\SiteDuplication\SiteDuplicator::set_urls PHP Метод

set_urls() приватный Метод

Sets the admin email address option to the given value.
private set_urls ( string $url, string $domain ) : void
$url string URL of the new site.
$domain string Potential domain of the new site, if using domain mapping.
Результат void
    private function set_urls($url, $domain)
    {
        update_option('home', $url);
        /**
         * Updating the siteurl option will start the URL renaming plugin.
         * So, yes, the following code is correct, even though siteurl will get updated two times!
         */
        if ($domain) {
            update_option('siteurl', $domain);
        }
        update_option('siteurl', $url);
    }