I'm writing a plugin which would print a notice, but only on the media page. I found the
all_admin_notices actions, but these are fired on all admin pages. Is there any way to find which admin page is the hook being called on from within the callback?
There is a global variable called $pagenow for the use within WP Admin:
UPDATE: Simply include the snippet in your themes or plugins
An alternative way is using the
See 'admin_notices' hook docs on Codex