Support » Plugins and Hacks » wp_register_script called incorrectly

wp_register_script called incorrectly

  • 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.


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