Hello,
I want to write a small plugin to add a js file to all admin pages. I have read how to add it to the actual plugin page but not everywhere.
How do i do this?
thanks.
Dave.
Hello,
I want to write a small plugin to add a js file to all admin pages. I have read how to add it to the actual plugin page but not everywhere.
How do i do this?
thanks.
Dave.
function plugin_admin_head_js() {
print "<script type='text/javascript' src='linktoyourjs.js'></script>";
}
add_action('admin_head', 'plugin_admin_head_js');This topic has been closed to new replies.