WordPress at a glance
function is not described

WP_Customize_Manager::set_return_url() public WP 4.4.0

Set URL to link the user to when closing the Customizer.

URL is validated.

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

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->set_return_url( $return_url );
$return_url(string) (required)
URL for return link.

Changelog

Since 4.4.0 Introduced.

Code of WP_Customize_Manager::set_return_url() WP 5.7.2

<?php
public function set_return_url( $return_url ) {
	$return_url       = esc_url_raw( $return_url );
	$return_url       = remove_query_arg( wp_removable_query_args(), $return_url );
	$return_url       = wp_validate_redirect( $return_url );
	$this->return_url = $return_url;
}