From 916df0991de826c00a18cb074d14f33539a2de4f Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Mon, 29 Apr 2024 11:45:09 +0500 Subject: [PATCH] remove wp core block patterns --- functions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 83e792e..09b379d 100644 --- a/functions.php +++ b/functions.php @@ -100,4 +100,10 @@ function fix_svg() { } add_action( 'admin_head', 'fix_svg' ); -/*== END ENABLE SVG UPLOADS ==*/ \ No newline at end of file +/*== END ENABLE SVG UPLOADS ==*/ + +// remove stock wordpress patterns +function remove_core_patterns() { + remove_theme_support('core-block-patterns'); +} +add_action('after_setup_theme', 'remove_core_patterns');