From 2c2300b023b4d0d79cb0a035b57ce6910ef2ef1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Sch=C3=A4r?= Date: Mon, 30 Sep 2024 15:01:00 +0200 Subject: [PATCH] Add filter to functions.php --- wordpress/wp-content/themes/les-verts/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wordpress/wp-content/themes/les-verts/functions.php b/wordpress/wp-content/themes/les-verts/functions.php index b3d5604a..a7cdaf62 100644 --- a/wordpress/wp-content/themes/les-verts/functions.php +++ b/wordpress/wp-content/themes/les-verts/functions.php @@ -45,6 +45,8 @@ function __construct() { // Filters // -> more info: https://developer.wordpress.org/reference/functions/add_filter/ add_filter( 'timber_context', array( $this, 'add_to_context' ), - 1 ); + // Disable SearchWP Email Summaries + add_filter( 'searchwp/email_summaries/disabled', '__return_true'); // Actions // -> more info: https://developer.wordpress.org/reference/functions/add_action/