WP_Customize_Manager::set_return_url()publicWP 4.4.0

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

URL is validated.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

null. Nothing (null).

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.

WP_Customize_Manager::set_return_url() code WP 6.5.2

public function set_return_url( $return_url ) {
	$return_url       = sanitize_url( $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;
}