mnelson4 / printmyblog

WordPress Plugin that simplifies printing your entire blog
GNU General Public License v3.0
16 stars 6 forks source link

Better Theme Integration #377

Open mnelson4 opened 1 year ago

mnelson4 commented 1 year ago

I realized I might be able to have themes active while also disabling their CSS. On setup_theme action, record the styles (and scripts?) enqueued, and which new callbacks were set on init and enqueue_scripts; on after_setup_theme remove them.

This way, we could default to having the theme active, without using its CSS.

Helpful: https://codex.wordpress.org/Plugin_API/Action_Reference