Title: &#8220;remove_theme_support&#8221; for Patterns
Last modified: March 13, 2024

---

# “remove_theme_support” for Patterns

 *  [Jakson](https://wordpress.org/support/users/jaskon/)
 * (@jaskon)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/remove_theme_support-for-patterns/)
 * Hey there, I’m using this function in a custom theme with the following code 
   to stop core patterns from .org from the pattern inserter:
 *     ```wp-block-code
       //  Disable core patterns
       add_action('init', function() {
           remove_theme_support('core-block-patterns');
       });
       ```
   
 * It works and removes the patterns that are normally pulled in from [https://wordpress.org/patterns/](https://wordpress.org/patterns/)
   
   But, there are still 7x patterns being shown that are not in the theme – I’ve
   tested this on a completely empty theme with just a functions.php added that 
   contains the code above.There’s 6x random “post” patterns and 1x random “call
   to action” pattern – theme file is here: [https://drive.google.com/file/d/153BZZUR-NJx7KFqKHDVUoiBZNylPeLyQ/view?usp=sharing](https://drive.google.com/file/d/153BZZUR-NJx7KFqKHDVUoiBZNylPeLyQ/view?usp=sharing)
   Bit of a head scratcher this one, any feedback would be appreciated!Cheers!
 * Jakson

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/remove_theme_support-for-patterns/#post-17506577)
 * I activated your theme in a new WordPress installation and don’t see any patterns.
   Since these are also stored in the database, I suspect that the ones you see 
   can be found there. You should be able to see them in the editor under Patterns
   > “Manage all my patterns”. This list is empty for me.
 *  Thread Starter [Jakson](https://wordpress.org/support/users/jaskon/)
 * (@jaskon)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/remove_theme_support-for-patterns/#post-17508579)
 * Thanks [@threadi](https://wordpress.org/support/users/threadi/) – I realise didn’t
   explain this very well – sorry! 🙂
 * It’s not that I’ve got patterns in the theme or in the database, or have created
   any.
 * It’s when you use the Pattern Inserter on the edit post/page – see this image
   here: [https://drive.google.com/file/d/1WnLA-fsPCUkCuKkaH-5Zcb0jn5k9tU8w/view?usp=sharing](https://drive.google.com/file/d/1WnLA-fsPCUkCuKkaH-5Zcb0jn5k9tU8w/view?usp=sharing)
 * You also see these same set up patterns using 2024 theme while disabling the 
   core patterns with the above code.
    -  This reply was modified 2 years, 1 month ago by [Jakson](https://wordpress.org/support/users/jaskon/).
      Reason: typo
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/remove_theme_support-for-patterns/#post-17509845)
 * I think this is a known issue: [https://github.com/WordPress/gutenberg/issues/55107](https://github.com/WordPress/gutenberg/issues/55107)–
   contact them to give more importance to fixing it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“remove_theme_support” for Patterns’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/remove_theme_support-for-patterns/#post-17509845)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
