title: Wordpress Dequeue Script not working (with jquery)
body: <p>I am trying to dequeue the following plugin scripts:</p>
  
  <pre><code>function afg_enqueue_cbox_scripts() {
  wp_enqueue_script('jquery');
  wp_enqueue_script('afg_colorbox_script', BASE_URL . "/colorbox/jquery.colorbox-min.js" , array('jquery'));
  wp_enqueue_script('afg_colorbox_js', BASE_URL . "/colorbox/mycolorbox.js" , array('jquery'));
  }
  </code></pre>
  
  <p>I tried adding this in functions.php:</p>
  
  <pre><code>add_filter('wp_print_styles', 'remove_mycred', 100);    
  function remove_mycred() {
  wp_dequeue_script( 'afg_colorbox_script' );
  wp_dequeue_script( 'afg_colorbox_js' );
  }
  </code></pre>
  
  <p>But it does not work at all - both scripts are still there.
  There are other scripts that I have no problems dequeuing - just not those.</p>
  
  <p>I suspect jquery has something to do with my problems? </p>
  
  <p>thanks!</p>
  
  <p>Blaise</p>