# wp_enqueue_block_template_skip_link()

URL: https://chugunov.pro/api-wordpress/functions/wp_enqueue_block_template_skip_link/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 6.4.0.

## Сигнатура

```php
wp_enqueue_block_template_skip_link()
```

## Описание

Ставит в очередь подключения стили ссылки для пропуска (skip-link).

## Исходный код

Файл: `wp-includes/theme-templates.php:110`

```php
function wp_enqueue_block_template_skip_link() {
	global $_wp_current_template_content;

	// Back-compat for plugins that disable functionality by unhooking this action.
	if ( ! has_action( 'wp_footer', 'the_block_template_skip_link' ) ) {
		return;
	}
	remove_action( 'wp_footer', 'the_block_template_skip_link' );

	// Early exit if not a block theme.
	if ( ! current_theme_supports( 'block-templates' ) ) {
		return;
	}

	// Early exit if not a block template.
	if ( ! $_wp_current_template_content ) {
		return;
	}

	wp_enqueue_style( 'wp-block-template-skip-link' );
}
```

## История изменений

- 7.0.0 — A script is no longer printed in favor of being added via _block_template_add_skip_link().
- 6.4.0 — Introduced.

## Связанные

Использует: [`has_action`](https://chugunov.pro/api-wordpress/functions/has_action/), [`remove_action`](https://chugunov.pro/api-wordpress/functions/remove_action/), [`current_theme_supports`](https://chugunov.pro/api-wordpress/functions/current_theme_supports/), [`wp_enqueue_style`](https://chugunov.pro/api-wordpress/functions/wp_enqueue_style/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/wp_enqueue_block_template_skip_link/
