wp_customize_url()
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 customize url WP 7.0
function wp_customize_url( $stylesheet = '' ) {
$url = admin_url( 'customize.php' );
if ( $stylesheet ) {
$url = add_query_arg( 'theme', urlencode( $stylesheet ), $url );
}
return esc_url( $url );
}