Support » Plugin: Insert JavaScript and CSS » wp_register_script called incorrectly

  • Joe Banks


    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

    Plus here’s an example in reference to wp_enqueue_script

    function register_my_scripts(){

    I’ll work on it myself as time permits.

  • The topic ‘wp_register_script called incorrectly’ is closed to new replies.