where is admin footer?

hi im working on my new wordpress website. and i wanted to add custom order status in my woocommerce order status and i found this code:-

the question is , where should i put the code ? should i put it in my theme function.php ? or put it in admin_footer? if so can someone navigate me to the admin_footer section?