Hooks for assets

Quick reference for where to hook in styles and scripts:

Where Action
Admin admin_enqueue_scripts
Frontend wp_enqueue_scripts
Block editor (admin) enqueue_block_editor_assets
Blocks (front and admin) enqueue_block_assets

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

Revision #3
Created 20 April 2020 10:03:30 by Sander
Updated 18 June 2021 08:22:17 by Sander