WP_Customize_Widgets::print_scripts() WordPress Method
The WP_Customize_Widgets::print_scripts() method is used to enqueue the scripts needed for managing widgets in the Customizer.
WP_Customize_Widgets::print_scripts() #
Calls admin_print_scripts-widgets.php and admin_print_scripts hooks to allow custom scripts from plugins.
Source
File: wp-includes/class-wp-customize-widgets.php
public function print_scripts() { /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_print_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_print_scripts' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |