ns-rx / poetwp

0 stars 0 forks source link

Refactor admin enqueue #27

Open ns-rx opened 3 months ago

ns-rx commented 3 months ago
          Consider calling `wp_register_script` on the `init` hook, and then calling enqueue only when you need it. That way, it gives a chance for other plugins / customisations to update / unregister the script as needed.

_Originally posted by @GaryJones in https://github.com/ns-rx/poetwp/pull/13#discussion_r1730399912_

ns-rx commented 3 months ago

Also https://github.com/ns-rx/poetwp/pull/13#discussion_r1730399870