0

現在WordPressのプラグインを開発中です。私は以下をエンキューし、それらも登録します:

    wp_register_script('woo_checkout_tooltips_jquery_js', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');

    wp_register_script('woo_bootstrap_js', 'http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js');

    wp_register_style('woo_checkout_tooltips_css', plugins_url('css/bootstrap.css', __FILE__) );

    wp_register_style('woo_bootstrap_css', plugins_url('css/style.css', __FILE__) );

    wp_enqueue_style('woo_bootstrap_css');

    wp_enqueue_style('woo_checkout_tooltips_css');

    wp_enqueue_script('woo_checkout_tooltips_jquery_js');

    wp_enqueue_script('woo_bootstrap_js');

    wp_register_script('tooltip_options',plugins_url('js/tooltip_options.js', __FILE__),array(),NULL,true);

    wp_enqueue_script('tooltip_options');

私の開発サイトの 1 つだけで、これは正常に機能します。他の人にインストールしようとすると、firebug のコンソールに次のエラーが表示されます。

TypeError: $(...).tooltip is not a function

上記の何かが場違いに見えますか?

4

1 に答える 1