Title: PHP Notice
Last modified: August 30, 2016

---

# PHP Notice

 *  [Karolina Vyskocilova](https://wordpress.org/support/users/vyskoczilova/)
 * (@vyskoczilova)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-60/)
 * Hi, when in WP debuging mode, in plugin overview, I’ll get following notice:
 * `Notice: wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and
   styles should not be registered or enqueued until the`wp_enqueue_scripts`,`admin_enqueue_scripts`,
   or`login_enqueue_scripts`hooks. Please see <a href="https://codex.wordpress.org/
   Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This
   message was added in version 3.3.)`
 * **UPDATE:**
 * You should enqueue styles and script ideally with a hook, see here: [https://codex.wordpress.org/Function_Reference/wp_enqueue_script#Using_a_Hook](https://codex.wordpress.org/Function_Reference/wp_enqueue_script#Using_a_Hook)
 * **I’ve fixed that for you, could you please update your plugin?**
    [4 changed files you’ll find here](https://drive.google.com/file/d/0ByIZPz3F8oCheS1lOGFFWmcwdEE/view?usp=sharing)
 * [https://wordpress.org/plugins/hot-news-manager/](https://wordpress.org/plugins/hot-news-manager/)

The topic ‘PHP Notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hot-news-manager_ccc9d5.svg)
 * [Hot News Manager](https://wordpress.org/plugins/hot-news-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hot-news-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hot-news-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/hot-news-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hot-news-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hot-news-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Karolina Vyskocilova](https://wordpress.org/support/users/vyskoczilova/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-60/)
 * Status: not resolved