[resolved] Javascript not loading with admin_print_scripts (2 posts)

  1. mercuryfenix
    Posted 7 years ago #

    As far as I can tell it was the upgrade to 2.8 that caused my script to stop loading. Is there any new update that would prevent the following from working? Is there a new and/or improved way of doing this?

    add_action('admin_print_scripts', 'vizzer_js_init');
    function vizzer_js_init()
    	wp_enqueue_script('vizzer', '/' . PLUGINDIR . '/vizzer/js/vizzer.js', array('jquery','jquery-ui-sortable', 'json2'));
  2. mercuryfenix
    Posted 7 years ago #

    i also tried using the admin_head action with no luck, any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic