WP_Interactivity_API::register_script_modules()

In this article

Registers the @wordpress/interactivity script modules.

Source

public function register_script_modules() {
	$suffix = wp_scripts_get_suffix();

	wp_register_script_module(
		'@wordpress/interactivity',
		includes_url( "js/dist/interactivity$suffix.js" )
	);

	wp_register_script_module(
		'@wordpress/interactivity-router',
		includes_url( "js/dist/interactivity-router$suffix.js" ),
		array( '@wordpress/interactivity' )
	);
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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