GC_Customize_Manager::set_preview_url()
最后更新于:2021-11-27 02:22:04
GC_Customize_Manager::set_preview_url( string$preview_url)Set the initial URL to be previewed.
参数
- $preview_url
-
(string) (Required) URL to be previewed.
源文件
文件: gc-includes/class-gc-customize-manager.php
public function set_preview_url( $preview_url ) {
$preview_url = esc_url_raw( $preview_url );
$this->preview_url = gc_validate_redirect( $preview_url, home_url( '/' ) );
}