woo_directives_register_scripts()WC 1.0

Register the Interactivity API scripts. These files are enqueued when a block defines woo-directives-runtime as a dependency.

Хуков нет.

Возвращает

null. Ничего.

Использование

woo_directives_register_scripts();

Код woo_directives_register_scripts() WC 7.7.2

function woo_directives_register_scripts() {
	wp_register_script(
		'woo-directives-vendors',
		plugins_url( '../../build/woo-directives-vendors.js', __FILE__ ),
		array(),
		'1.0.0',
		true
	);
	wp_register_script(
		'woo-directives-runtime',
		plugins_url( '../../build/woo-directives-runtime.js', __FILE__ ),
		array( 'woo-directives-vendors' ),
		'1.0.0',
		true
	);
}