# wp_skip_paused_themes()

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

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

## Сигнатура

```php
wp_skip_paused_themes( string[] $themes ): string[]
```

## Описание

Фильтрует переданный список тем, удаляя из него все приостановленные темы.

## Параметры

- `$themes` `string[]` — обязательный. Массив абсолютных путей к каталогам тем.

## Возвращаемое значение

`string[]`

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

Файл: `wp-includes/load.php:1137`

```php
function wp_skip_paused_themes( array $themes ) {
	$paused_themes = wp_paused_themes()->get_all();

	if ( empty( $paused_themes ) ) {
		return $themes;
	}

	foreach ( $themes as $index => $theme ) {
		$theme = basename( $theme );

		if ( array_key_exists( $theme, $paused_themes ) ) {
			unset( $themes[ $index ] );

			// Store list of paused themes for displaying an admin notice.
			$GLOBALS['_paused_themes'][ $theme ] = $paused_themes[ $theme ];
		}
	}

	return $themes;
}
```

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

- 5.2.0 — Introduced.

## Связанные

Использует: [`wp_paused_themes`](https://chugunov.pro/api-wordpress/functions/wp_paused_themes/).
Используется в: [`wp_get_active_and_valid_themes`](https://chugunov.pro/api-wordpress/functions/wp_get_active_and_valid_themes/).

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