On this page
do_action( 'admin_print_scripts' )
Fires when scripts are printed for all admin pages.
More Information
admin_print_scriptsmainly used to echo inline javascript in admin pages header.admin_print_scriptsshould not be used to enqueue styles or scripts on the admin pages. Useadmin_enqueue_scriptsinstead.admin_print_scriptscould be used to insert inline script in admin pages header whileadmin_print_footer_scriptscould be used to insert inline script in admin pages footer.
Source
File: wp-admin/admin-header.php. View all references
do_action( 'admin_print_scripts' );
Related
Used By
| Used By | Description |
|---|---|
| iframe_header() wp-admin/includes/template.php | Generic Iframe header for use with Thickbox. |
| wp_iframe() wp-admin/includes/media.php | Outputs the iframe to display the media upload page. |
| WP_Customize_Widgets::print_scripts() wp-includes/class-wp-customize-widgets.php | Calls admin_print_scripts-widgets.php and admin_print_scripts hooks to allow custom scripts from plugins. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/admin_print_scripts