Leave a Reply

1 comment

  1. This is what ended up working for me:
    Put your script into a .js file and then:

    add_action( 'login_enqueue_scripts', 'enqueue_my_script' );
    
    function enqueue_my_script( $page ) {
        wp_enqueue_script( 'my-script', 'http://domain.com/path/myjs-file.js', null, null, true );
    }