# Disable Remote Block Patterns

> Stops WordPress from loading block patterns from the WordPress.org pattern directory, leaving only theme and plugin 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-remote-block-patterns/

## Code

```php
add_filter( 'should_load_remote_block_patterns', '__return_false' );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable Remote 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/
