title: Wordpress force scripts to load after plugins
body: <p>I have a custom js file as part of my wordpress installation, which is registered and enqueued using functions.php as normal. I have registered this particular script to load within wp_footer rather than within wp_header. However, I also have a plugin that is putting js into wp_footer, and by default it is loading this below my script. I need to force my script to load last. Is there soemthing simple that can be done to achieve this? It seems like something fairly routine to me?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>function scripts() {
  // Register scripts
  // js
  wp_register_script('custom', get_bloginfo('template_url'). '/js/custom.js', false, false, true);
  
  // Enqueue scripts
  wp_enqueue_script('custom');
  }
  
  add_action('wp_enqueue_scripts', 'scripts');
  </code></pre>
  
  <p>The current order of the scripts goes, but I need to force my script to load after the plugin:</p>
  
  <pre><code>&lt;script&gt;/my_script.js&lt;/script&gt;
  &lt;script&gt;/plugin_script.js&lt;/script&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>