# Disable Core Block Patterns

> Removes the block patterns that ship with WordPress itself, so the pattern inserter only shows your theme and custom patterns.

- Type: PHP
- Runs: Run everywhere
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: block-editor, patterns
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-core-block-patterns/

## Code

```php
add_action( 'after_setup_theme', function () {
    remove_theme_support( 'core-block-patterns' );
}, 20 );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable Core Block Patterns" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
