I am loading scripts via wp_enqueue_scripts in my child theme.
The only problem is that my style.css script get loaded BEFORE plugin scripts, yet I need to override the css in the plugins with my style.css, meaning it has to load AFTER plugin scripts.
I don't want to add "!important" too all of my css styles because that is tedious and could break some of my styling.
I tried adding a priority but it did not effect the loading order at all.
add_action('wp_enqueue_scripts', 'scripts', 9999);
I would simply like to wp_enqueue_scripts at the very end of the header, just before < /head >. How can it be done? Thanks :-)
Yay I figured it out!
Simply register the filter with:
wp_print_styles loads with a priority of 8, and it still places them in the header because it's a part of wp_head.
I figured this out by looking in wp-includes/default-filters.php, so thanks for the tip! :-)