Can’t Hide Plugin PHP Errors (deprecated)
-
Hi! Thank you so much for such an awesome plugin.
I ran into an issue when trying to hide warnings about deprecated functions in the Google for WooCommerce plugin. It is installed via the WooCommerce extensions, not through the WordPress plugin repository.
I tried using this filter inside my theme, but it didn’t help. I noticed that the
$levelsvariable is an empty array, even though QM shows 3.5K errors.add_filter( 'qm/collect/php_error_levels', function ( array $levels ) : array {
$levels[ 'plugin' ][ 'google-listings-and-ads' ] = ( E_ALL & ~E_NOTICE );
return $levels;
});I would really appreciate your help, and I can provide more information if needed.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.