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
	}


Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More