Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets are hooked for every inclusion of RBM FH #70

Open
d4mation opened this issue May 29, 2019 · 0 comments
Open

Assets are hooked for every inclusion of RBM FH #70

d4mation opened this issue May 29, 2019 · 0 comments
Labels

Comments

@d4mation
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant