W3cubDocs

/WordPress

do_action( 'admin_print_scripts' )

Fires when scripts are printed for all admin pages.

More Information

  • admin_print_scripts mainly used to echo inline javascript in admin pages header.
  • admin_print_scripts should not be used to enqueue styles or scripts on the admin pages. Use admin_enqueue_scripts instead.
  • admin_print_scripts could be used to insert inline script in admin pages header while admin_print_footer_scripts could be used to insert inline script in admin pages footer.

Source

File: wp-admin/admin-header.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_print_scripts