wp_dequeue_script_module

The timeline below displays how wordpress function wp_dequeue_script_module has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Unmarks the script module so it is no longer enqueued in the page.
 *
 * @since 6.5.0
 *
 * @param string $id The identifier of the script module.
 */
function wp_dequeue_script_module(string $id)
{
    wp_script_modules()->dequeue($id);
}