realbig / rbm-field-helpers

0 stars 1 forks source link

Assets are hooked for every inclusion of RBM FH #70

Open d4mation opened 5 years ago

d4mation commented 5 years ago

Every time a new RBM FH object is created, it hooks into admin_enqueue_scripts. So if you have 3 RBM FH objects created, it hooks in 3 times.

It will only run the one time, but if you were to attempt to forcefully unhook it from $wp_filter you will have to ensure you unhook every copy. This seems undesirable and it should somehow only hook in the very first time an object is created.