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' );
	}


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