Title: WP_Scripts::add warning
Last modified: April 6, 2026

---

# WP_Scripts::add warning

 *  Resolved [webparaplan](https://wordpress.org/support/users/webparaplan/)
 * (@webparaplan)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/)
 * Hello! In debug.log too many warnings
 *     ```wp-block-code
       [06-Apr-2026 07:18:29 UTC] PHP Notice: Function WP_Scripts::add was called <strong>incorrectly</strong>. The script with handle "thwcfd-checkout-script" was enqueued with unregistered dependencies: selectWoo. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">&laquo;Debugging in WordPress&raquo;</a> for more information. (This message was added in version 6.9.1.) in /data/www/kapusta-fashion.ru/wp-includes/functions.php on line 6131
       ```
   
    - I understand this is **not a critical bug** — it’s just a PHP notice and doesn’t
      break any functionality
    - However, I like to keep my `debug.log` clean and follow WordPress coding standards
    - `selectWoo` appears to be a legacy/deprecated script (it was replaced by `
      wc-select` in modern WooCommerce)

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

 *  Plugin Support [Elena](https://wordpress.org/support/users/elenathemehigh/)
 * (@elenathemehigh)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/#post-18873475)
 * Hi,
 * Could you please check after adding the below code in your theme’s functions.
   php file?
 *     ```wp-block-code
       function th34r_enqueue_custom_scripts() {    if (!is_checkout()) return;    // Register only if missing    if (!wp_script_is('selectWoo', 'registered')) {        wp_register_script(            'selectWoo',            WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js',            array('jquery'),            null,            true        );    }    wp_enqueue_script('selectWoo');}add_action('wp_enqueue_scripts', 'th34r_enqueue_custom_scripts', 20);
       ```
   
 * Could you please check and verify if this works for you?
 * Thank you!
 *  Thread Starter [webparaplan](https://wordpress.org/support/users/webparaplan/)
 * (@webparaplan)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/#post-18873727)
 * [@elenathemehigh](https://wordpress.org/support/users/elenathemehigh/) I’m add
   this ti my function.php and clear cache – but not helped(
 *  Plugin Support [Elena](https://wordpress.org/support/users/elenathemehigh/)
 * (@elenathemehigh)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/#post-18874654)
 * Your issue needs a detailed check. Can you please raise a ticket through our 
   website? We hope our technical team will be able to help you.
 * Thank you!
 *  Plugin Support [Elena](https://wordpress.org/support/users/elenathemehigh/)
 * (@elenathemehigh)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/#post-18878636)
 * Since we haven’t heard back from you, we believe that your issue is resolved.
   We’ll go ahead and mark this thread as resolved.
 * Thank you!

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

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

 * ![](https://ps.w.org/woo-checkout-field-editor-pro/assets/icon-256x256.gif?rev
   =3479964)
 * [Checkout Field Editor (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woo-checkout-field-editor-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-checkout-field-editor-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-checkout-field-editor-pro/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Elena](https://wordpress.org/support/users/elenathemehigh/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/wp_scriptsadd-warning/#post-18878636)
 * Status: resolved