Why does customize_register only load inside of functions.php for me?
In the second version you’re running your code as a wp_enqueue_scripts hook. This is for frontend scripts and isn’t called in the admin site. For that you need to hook admin_enqueue_scripts as well: add_action( ‘wp_enqueue_scripts’, ‘boatTheBusForOutdoorAccess_register_url’); add_action( ‘admin_enqueue_scripts’, ‘boatTheBusForOutdoorAccess_register_url’); That said, it might be simpler to just include your admin scripts based on is_admin() if … Read more