WP_Customize_Manager::set_preview_url( string $preview_url )

Sets the initial URL to be previewed.


Description

URL is validated.


Top ↑

Parameters

$preview_url string Required
URL to be previewed.

Top ↑

Source

File: wp-includes/class-wp-customize-manager.php. View all references

public function set_preview_url( $preview_url ) {
	$preview_url       = sanitize_url( $preview_url );
	$this->preview_url = wp_validate_redirect( $preview_url, home_url( '/' ) );
}


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.