Insert JavaScript and CSS
wp_register_script called incorrectly (1 post)

  1. Joe Banks
    Posted 3 years ago #

    PHP error found with this plugin installed and (from what I see) not tying wp_enqueue_script to an action.

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /usr/appl/wordpress/wp-includes/functions.php on line 2758

    To fix, reference this https://codex.wordpress.org/Function_Reference/wp_register_script

    Plus here's an example in reference to wp_enqueue_script

    function register_my_scripts(){

    I'll work on it myself as time permits.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert JavaScript and CSS
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic