# Hooks for assets

Quick reference for where to hook in styles and scripts:

<table border="1" id="bkmrk-where-action-admin-a" style="border-collapse: collapse; width: 100%;"><thead><tr><td style="width: 50%;">*Where*</td><td style="width: 50%;">*Action*</td></tr></thead><tbody><tr><td style="width: 50%;">Admin</td><td style="width: 50%;">admin\_enqueue\_scripts</td></tr><tr><td style="width: 50%;">Frontend</td><td style="width: 50%;">wp\_enqueue\_scripts</td></tr><tr><td style="width: 50%;">Block editor (admin)</td><td style="width: 50%;">enqueue\_block\_editor\_assets</td></tr><tr><td style="width: 50%;">Blocks (front and admin)</td><td style="width: 50%;">enqueue\_block\_assets</td></tr></tbody></table>

Don't register or enqueue scripts and styles in init, this will break WordPress updates and unexpected things might happen.