WordPress.org

Forums

Smart YouTube PRO
debug notices - wp_register_script was called incorrectly (1 post)

  1. Viktor Szépe
    Member
    Posted 1 year ago #

    Please update your plugin like this:

    function reg_scripts() {
        $script_path = $this->plugin_url . '/javascripts/jquery.colorbox-min.js';
        wp_register_script( 'colorbox', $script_path, array('jquery') );
    }
    function add_filters_and_hooks() {
        add_action('wp_enqueue_scripts', array( $this, 'reg_scripts' ));

    https://wordpress.org/plugins/smart-youtube/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.