You appear to be a bot. Output may be restricted
Description
Register and Enqueue Scripts.
Usage
twentytwenty_register_scripts();
Parameters
Returns
void
Source
File name: twentytwenty/functions.php
Lines:
1 to 12 of 12
function twentytwenty_register_scripts() { $theme_version = wp_get_theme()->get( 'Version' ); if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'twentytwenty-js', get_template_directory_uri() . '/assets/js/index.js', array(), $theme_version, false ); wp_script_add_data( 'twentytwenty-js', 'async', true ); }