Function wc_enqueue_js deprecated since version 10.4.0!
-
There is an issue related to the deprecated function
wc_enqueue_js().You can read about it for example here:
https://developer.woocommerce.com/2025/11/19/deprecation-of-wc_enqueue_js-in-10-4/In the current version of your plugin, which is version 1.22.3, this deprecated function is being used in the file:
duracelltomi-google-tag-manager -> integration -> woocommerce.php…on line 799
It has been recommended by WooCommerce to replace
wc_enqueue_js()withwp_add_inline_script().Since version 10.5 WooCommerce is reporting the deprecated function calls in the PHP error_log file. And this results in the PHP error_log file being flooded with these warnings.
Can you please kindly advise how to use the deprecated
wc_enqueue_js()function?Kind regards,
SP
You must be logged in to reply to this topic.