Related to the previous post on removing actions from particular hook on particular page, I was doing this trick when working on WooCommerce Newsletter Generator for Hijapedia Store.
This is what I learned so far:
- All styles are registered and queued to
- In similar fashion, all scripts are registered and queued to
This is how to implement those lessons above:
- Hook an action, make sure that you hook it late so all stylesheets and scripts have been enqueued
- Loop the queued stylesheets / scripts, and dequeue em using
That’s that. Here’s how I did it: