wpmdb_replace_site_urls

wpmdb_replace_site_urls

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_filters('wpmdb_replace_site_urls') is found 1 times:

  • /class/Common/Replace.php line 452
             * Filters the site_urls used to check if there is a protocol mismatch.
             *
             * @param array
             */
            $wpmdb_home_urls = apply_filters('wpmdb_replace_site_urls', $wpmdb_home_urls);
    
            $local_url_is_https  = false === stripos($wpmdb_home_urls['local'], 'https') ? false : true;
            $remote_url_is_https = false === stripos($wpmdb_home_urls['remote'], 'https') ? false : true;
            $local_protocol      = $local_url_is_https ? 'https' : 'http';
            $remote_protocol     = $remote_url_is_https ? 'https' : 'http';