Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Function wp_enqueue_script was called incorrectly
Last modified: July 20, 2024

---

# [NSFW] Function wp_enqueue_script was called incorrectly

 *  [toov2372](https://wordpress.org/support/users/toov2372/)
 * (@toov2372)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-9/)
 * Hi, first your plugin is very helpful but we discoverd an error while using it:
 * “Function wp_enqueue_script was called incorrectly. Scripts and styles should
   not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts,
   or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link
   handle. “
 * Is there any chance that this problem – which is likely to occur with other users
   as well – will be resolved in the short term?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-wp_enqueue_script-was-called-incorrectly-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘[NSFW] Function wp_enqueue_script was called incorrectly’ is closed to
new replies.

 * ![](https://ps.w.org/convert-a-link/assets/icon-256x256.png?rev=1608684)
 * [Awin Publisher MasterTag](https://wordpress.org/plugins/convert-a-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/convert-a-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/convert-a-link/)
 * [Active Topics](https://wordpress.org/support/plugin/convert-a-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/convert-a-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/convert-a-link/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [toov2372](https://wordpress.org/support/users/toov2372/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-9/)
 * Status: not resolved