the code should go in functions.php.
Altering $field[‘message’] will alter the message displayed in the admin.
I forgot about message fields not having names, in this case you will need to use the field key variant of the filter, see the documentation.