• 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:

    //  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/

    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

    Bit of a head scratcher this one, any feedback would be appreciated!

    Cheers!

    Jakson

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

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