$wp_styles->registered not giving ALL the styles?

All scripts and styles which get included by either wp_enqueue_script() or wp_enqueue_style() get displayed in the action hook wp_head or wp_footer. So the proper moment to merge them together would be there. Hook in very early and do your magic there.

The wp_enqueue_styles hook is not necessarily the best one, since it is not always the hook where the styles are registered. So it seems to me, it would be better to merge the scripts/styles at the moment of the output, not the input.

Leave a Comment