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