Snippet id not available in the WP error_log

[ad_1]

Hi,
During development phases, the WP error log shows critical information when debugging a snippet, as in:
“[21-Jun-2024 15:53:17 UTC] PHP Warning: Undefined variable $atts in /srv/htdocs/wp-content/plugins/code-snippets-pro/php/snippet-ops.php(609) : eval()’d code on line 8”
But this is very vague.
Why does this not contain the snippet ID so you can instantly target the faulty snippet? Otherwise this is just like seaching for a needle in a haystack when you have multiple snippets running in parallel.

Have I missed something? Is there a way to direct the configuration to expose the ID that is the source of the error via “$snippet_id”?
Kindly advise.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer