WordPress at a glance
function is not described

WP_Customize_Manager::get_preview_url() public WP 4.4.0

Get the initial URL to be previewed.

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

String. URL being previewed.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->get_preview_url();

Changelog

Since 4.4.0 Introduced.

Code of WP_Customize_Manager::get_preview_url() WP 5.7.2

<?php
public function get_preview_url() {
	if ( empty( $this->preview_url ) ) {
		$preview_url = home_url( '/' );
	} else {
		$preview_url = $this->preview_url;
	}
	return $preview_url;
}