WP_Customize_Widgets::print_footer_scripts() WordPress Method
The WP_Customize_Widgets::print_footer_scripts() method is used to print the scripts that are needed for the widget Customizer interface. This includes the Customizer JS template and the theme's widget js file.
WP_Customize_Widgets::print_footer_scripts() #
Calls admin_print_footer_scripts and admin_print_scripts hooks to allow custom scripts from plugins.
Source
File: wp-includes/class-wp-customize-widgets.php
public function print_footer_scripts() { /** This action is documented in wp-admin/admin-footer.php */ do_action( 'admin_print_footer_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** This action is documented in wp-admin/admin-footer.php */ do_action( 'admin_print_footer_scripts' ); /** This action is documented in wp-admin/admin-footer.php */ do_action( 'admin_footer-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |