I'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this:
if (is_admin()){ wp_enqueue_script( 'my-script' ); }
But this loads it in every admin page, I'm assuming I need to hook it to a function but I hvae no idea what it'd be.
Thanks in advance!