I have a couple of questions regarding enqueuing scripts and styles in custom plugin code.
I've recently come across plugin code where scripts were enqueued hooing into the
template_redirect action hook while scripts were enqueued using the
ss_css (I guess this is a custom action) and
login_enqueue_scripts action hooks.
My question, therefore, is:
What is the most appropriate hook to enqueue JS scripts and styles. Is it
wp_enqueue_scripts as is the case in themes? Or should it be more purpose specific as in the scenario described above? In short, should enqueuing scripts and styles in plugins be governed by different rules?