WP_Customize_Manager::set_return_url() WordPress Method

The WP_Customize_Manager::set_return_url() method is used to set the URL that the Customizer will return to when the user is done making changes. This is typically the URL of the page that was being edited when the Customizer was invoked.

WP_Customize_Manager::set_return_url( string $return_url ) #

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


Description

URL is validated.


Top ↑

Parameters

$return_url

(string)(Required)URL for return link.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.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;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More