WP_Script_Modules::print_enqueued_script_modules()

In this article

Prints the enqueued script modules using script tags with type=”module” attributes.

Source

public function print_enqueued_script_modules() {
	foreach ( $this->get_marked_for_enqueue() as $id => $script_module ) {
		wp_print_script_tag(
			array(
				'type' => 'module',
				'src'  => $this->get_src( $id ),
				'id'   => $id . '-js-module',
			)
		);
	}
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.