Title: Deprecated: Function WP_Scripts::print_inline_script is deprecated since version
Last modified: August 9, 2023

---

# Deprecated: Function WP_Scripts::print_inline_script is deprecated since version

 *  Resolved [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * (@neo2k23)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/)
 * I get this message when woocommerce is active in wp 6.3
 * Deprecated: Function WP_Scripts::print_inline_script is deprecated since version
   6.3.0! Use WP_Scripts::get_inline_script_data() or WP_Scripts::get_inline_script_tag()
   instead. in /var/docs/xxxxxx.com/public/wp-includes/functions.php on line 5452
 * When i turn off woocommerce it is gone
 * It is coming from woocommerce blocks minicart.php line 357 and 358
 * Please fix.

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

 *  [Beauty of Code (woo-hc)](https://wordpress.org/support/users/beautyofcode/)
 * (@beautyofcode)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/#post-16874673)
 * Hi [@neo2k23](https://wordpress.org/support/users/neo2k23/) ,
 * Thanks for reaching out!
 * I understand that you are seeing the above notice when activating WooCommerce,
   is this correct?
 * I’d like to have a better understanding of your sites current environment, please
   can you share the following:
    - **System Status report:** which you can find via **WooCommerce** → **Status**.
      Select `Get system report` and then `Copy for support`.
    - **Fatal Error log:** Share a copy of any fatal error log found under **WooCommerce**
      → **Status** → **Logs**.
 * Once you have this, please share the results in your response here.
 * Cheers!
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/neo2k23/)
 * (@neo2k23)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/#post-16874990)
 * No i am seeying these when woocommerce is active. in any theme in a clean wp 
   running wodpress 6.3 latest trunk build.
 * Further info here [https://github.com/woocommerce/woocommerce/issues/39101](https://github.com/woocommerce/woocommerce/issues/39101)
 * Please look into block includes minicart.php line 357 and 358
   You are calling
   a deprecated function. This has nothing to do with my install or fatal errors
   in my status report. The function call is deprecated and needs to be updated 
   either by **get_inline_script_data** or by **get_inline_script_tag**Thank you.
    -  This reply was modified 2 years, 11 months ago by [BackuPs](https://wordpress.org/support/users/neo2k23/).
 *  [Beauty of Code (woo-hc)](https://wordpress.org/support/users/beautyofcode/)
 * (@beautyofcode)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/#post-16877184)
 * Hi [@neo2k23](https://wordpress.org/support/users/neo2k23/) ,
 * While this is not something I am able to replicate on my test site using WP 6.3,
   since this was recently [reported on GitHub](https://github.com/woocommerce/woocommerce/issues/39101),
   our developers will take a closer look.
 * I’d suggest subscribing to the thread to stay looped in on any updates as they
   are made.
 * Cheers!
 *  Plugin Contributor [royho](https://wordpress.org/support/users/royho/)
 * (@royho)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/#post-16959946)
 * Hi folks,
 * This should be fixed in WooCommerce 8.0.

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

The topic ‘Deprecated: Function WP_Scripts::print_inline_script is deprecated since
version’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [royho](https://wordpress.org/support/users/royho/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_scriptsprint_inline_script-is-deprecated-since-version/#post-16959946)
 * Status: resolved