# remove_permastruct()

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

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

## Сигнатура

```php
remove_permastruct( string $name )
```

## Описание

Can only be used to remove permastructs that were added using [add_permastruct()](https://developer.wordpress.org/reference/functions/add_permastruct/) .
Built-in permastructs cannot be removed.[See also](#see-also)
- [WP_Rewrite::remove_permastruct()](https://developer.wordpress.org/reference/classes/WP_Rewrite/remove_permastruct/)

## Параметры

- `$name` `string` — обязательный. Имя структуры постоянных ссылок.

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

Файл: `wp-includes/rewrite.php:234`

```php
function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}
```

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

- 4.5.0 — Introduced.

## Связанные

Использует: `WP_Rewrite::remove_permastruct`.
Используется в: `WP_Taxonomy::remove_rewrite_rules`, `WP_Post_Type::remove_rewrite_rules`.

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