Archived topic
Elements hook in admin panel
3 replies · Started by Dominik on May 11, 2021
Hi,
is it possible to add a JS hook to the admin panel?
The support of a plugin we use added a little JS with the plugin "Simple Custom CSS and JS" and set the display rule to "in admin".
Now I want to get rid of this plugin and add the JS with an Elements hook but it doesn't seem to work. Is it possible to add a hook to the admin panel?
thank you
Hi there,
you can try selecting the Custom Hook option in the Hook Element.
And then add the hook you require in the field provided eg. in_admin_footer
https://developer.wordpress.org/reference/hooks/in_admin_footer/
Hi David,
perfect, that did the trick.
Thanks for your help.
Glad to be of help.