WP_Scripts::__construct() – Method | Developer.WordPress.org

Constructor.

Source

public function __construct() {
	$this->init();
	add_action( 'init', array( $this, 'init' ), 0 );
}

View all references View on Trac View on GitHub

UsesDescription
WP_Scripts::init()wp-includes/class-wp-scripts.php

Initialize the class.

add_action()wp-includes/plugin.php

Adds a callback function to an action hook.

Used byDescription
_wp_get_iframed_editor_assets()wp-includes/block-editor.php

Collect the block editor assets that need to be loaded into the editor’s iframe.

wp_scripts()wp-includes/functions.wp-scripts.php

Initializes $wp_scripts if it has not been set.

Changelog

VersionDescription
2.6.0Introduced.