• Yan Metelitsa

    (@yanmetelitsa)


    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 $levels variable 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)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Is the plugin installed into the wp-content/plugins/google-listings-and-ads directory? Or somewhere else?

    That $levels array just controls the options for filtering which errors get collected and shown, so it won’t contain any actual data by default unless something hooks into the qm/collect/php_error_levels and adjusts it.

    Thread Starter Yan Metelitsa

    (@yanmetelitsa)

    Yes, plugin path is .../wp-content/plugins/google-listings-and-ads

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

You must be logged in to reply to this topic.