wp_customize_url()WP 3.4.0

Returns a URL to load the Customizer.

Хуков нет.

Возвращает

Строку.

Использование

wp_customize_url( $stylesheet );
$stylesheet(строка)
Theme to customize. The theme's stylesheet will be urlencoded if necessary.
По умолчанию: active theme

Список изменений

С версии 3.4.0 Введена.

Код wp_customize_url() WP 6.5.2

function wp_customize_url( $stylesheet = '' ) {
	$url = admin_url( 'customize.php' );
	if ( $stylesheet ) {
		$url .= '?theme=' . urlencode( $stylesheet );
	}
	return esc_url( $url );
}