wp_customize_url() WP 3.4.0
Returns a URL to load the Customizer.
Хуков нет.
Возвращает
Строку
. Null. Ничего.
Использование
wp_customize_url( $stylesheet );
- $stylesheet(строка)
- Theme to customize. The theme's stylesheet will be urlencoded if necessary.
По умолчанию: current theme
Список изменений
С версии 3.4.0 | Введена. |
Код wp_customize_url() wp customize url WP 5.7
function wp_customize_url( $stylesheet = '' ) {
$url = admin_url( 'customize.php' );
if ( $stylesheet ) {
$url .= '?theme=' . urlencode( $stylesheet );
}
return esc_url( $url );
}