Title: Need to wrap script enqueue in the enqueue hook
Last modified: August 22, 2016

---

# Need to wrap script enqueue in the enqueue hook

 *  [atomicadam](https://wordpress.org/support/users/atomicadam/)
 * (@atomicadam)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/need-to-wrap-script-enqueue-in-the-enqueue-hook/)
 * warning given because the wp_enqueue_script() is not in the add_action( ‘wp_enqueue_scripts’,‘
   some_function_name’ ); hook.
 * easy to fix, and less clutter for the debug log.
 * [https://wordpress.org/plugins/fp-news-ticker/](https://wordpress.org/plugins/fp-news-ticker/)

The topic ‘Need to wrap script enqueue in the enqueue hook’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fp-news-ticker_909092.svg)
 * [FP News Ticker](https://wordpress.org/plugins/fp-news-ticker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fp-news-ticker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fp-news-ticker/)
 * [Active Topics](https://wordpress.org/support/plugin/fp-news-ticker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fp-news-ticker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fp-news-ticker/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [atomicadam](https://wordpress.org/support/users/atomicadam/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/need-to-wrap-script-enqueue-in-the-enqueue-hook/)
 * Status: not resolved