Title: Deprecated function wc_enqueue_js is in use
Last modified: February 16, 2026

---

# Deprecated function wc_enqueue_js is in use

 *  [Gevorg](https://wordpress.org/support/users/gev0rg/)
 * (@gev0rg)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-function-wc_enqueue_js-is-in-use/)
 * Hi
 * 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/](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()` with `wp_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 update your plugin file to avoid using the deprecated `wc_enqueue_js()`
   function?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Gevorg](https://wordpress.org/support/users/gev0rg/)
 * (@gev0rg)
 * [3 months ago](https://wordpress.org/support/topic/deprecated-function-wc_enqueue_js-is-in-use/#post-18849278)
 * As **other users** have **also reported** about this issue [here](https://wordpress.org/support/topic/function-wc_enqueue_js-deprecated-since-version-10-4-0/)
   and [here](https://wordpress.org/support/topic/wc-10-5-0-deprecated-wc_enqueue_js/)
   on this support forum, can you at least give an update on what you are doing 
   concerning this problem?
 * The **php_errorlog file** of WordPress is **being flooded** with warnings concerning
   this issue.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeprecated-function-wc_enqueue_js-is-in-use%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Gevorg](https://wordpress.org/support/users/gev0rg/)
 * Last activity: [3 months ago](https://wordpress.org/support/topic/deprecated-function-wc_enqueue_js-is-in-use/#post-18849278)
 * Status: not resolved