I’m still confused. In this page at WordPress, I see an example that looks like a path:
<script type="text/javascript" src="/scripts/emailpage.js"></script>
Are you saying that I register my script with a certain name, then put that name in the script below where it says ‘my-admin-js’?
function my_admin_enqueue_scripts() {
wp_enqueue_script( 'my-admin-js', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}
add_action('admin_enqueue_scripts', 'my_admin_enqueue_scripts');