mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-27 11:38:01 +01:00
27 lines
575 B
PHP
27 lines
575 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Interactivity API: Functions and hooks
|
||
|
*
|
||
|
* @package WordPress
|
||
|
* @subpackage Interactivity API
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Registers the interactivity modules.
|
||
|
*/
|
||
|
function wp_interactivity_register_script_modules() {
|
||
|
wp_register_script_module(
|
||
|
'@wordpress/interactivity',
|
||
|
includes_url( '/js/dist/interactivity.min.js' ),
|
||
|
array()
|
||
|
);
|
||
|
|
||
|
wp_register_script_module(
|
||
|
'@wordpress/interactivity-router',
|
||
|
includes_url( '/js/dist/interactivity-router.min.js' ),
|
||
|
array( '@wordpress/interactivity' )
|
||
|
);
|
||
|
}
|
||
|
|
||
|
add_action( 'init', 'wp_interactivity_register_script_modules' );
|