WP_Script_Modules::print_enqueued_script_modules()

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

Source

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

Changuelog

Versionen Description
6.5.0 Introduced.

User Contributed Notes

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